您的位置:首页 > 移动开发 > Unity3D

打Android包出现异常UnityException: Bundle Identifier has not been set up correctly

2017-03-28 11:40 701 查看
异常如下

UnityException: Bundle Identifier has not been set up correctly

Please set the Bundle Identifier in the Player Settings. The value must follow the convention 'com.YourCompanyName.YourProductName' and can contain alphanumeric characters and underscore.

Each segment must not start with a numeric character or underscore.

UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex)

UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message)

UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.ThrowIfInvalid (System.String packageName)

UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)

UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)

UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions
options, UnityEditor.RuntimeClassRegistry usedClassRegistry)

UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args)

UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions
options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:176)

UnityEditor.HostView:OnGUI()



这是因为包名错误的原因,解决办法如下

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐