- Home /
Android Manifest issues?
Hi,
I've been trying to build my application to Android and this is the error I keep getting:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.AndroidManifest.SetApplicationFlag (System.String name, Boolean value)
UnityEditor.AndroidManifest.SetDebuggable (Boolean debuggable)
UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.PatchManifest (UnityEditor.Android.PostProcessor.PostProcessorContext context, System.String manifest)
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:186)
UnityEditor.HostView:OnGUI()
Any suggestions for what's going on here? I'm using Unity 5.5.0f3 Personal.
No idea, but by the looks of the stack trace, could it be that you left the "application name" field empty ? (under player settings)
Answer by mmortall · May 17, 2018 at 03:21 PM
I've fixed this bug by removing AndroidManifest, so Unity recreates it next build.
Your answer
Follow this Question
Related Questions
Android APK freezes during level load but not in Unity Editor 2 Answers
GVR Reticle not centered on android phone anymore. 1 Answer
After installing the .apk , the App Icon appears twice 1 Answer
Google Play showing This app is incompatible with all of your devices 1 Answer
i need help. Why my character looks so weird when i change Platform from standalone to android 0 Answers