- Home /
Generated Android Manifest misses important entries like "targetSdkVersion"
When I build for Android and then examine the generated AndroidMainfest.xml in Temp/StagingArea then the generated Manifest misses important entries like "minSdkVersion" and "targetSdkVersion". Also "versionCode" and "versionName" is not there. Is this intended behaviour? I though the values from PlayerSettings are automatically merged into the generated Manifest? In Unity the build completes with result "succeeded". I don't have any plugins that come with additional manifests to merge.
I use Unity 2018.2.13f1 and tried it with Build Tools 26 and 28, but with the same result. In PlayerSettings I set minimum API level to 16 and tried different values for target API level (22-28). All corresponding API levels are installed in Android Studio.
Am I doing something wrong?
Answer by DanielK2 · Dec 03, 2018 at 11:37 AM
Ok, I found something. The AndroidMainfest.xml in Temp/StagingArea seems to be not the one that is build into the game.apk file. I examined the generated apk file in Android Studio with "Build/Analyze AKP..." to see the AndroidManifest that is inside the apk file and the entries are all there, nothing missing.
Your answer
Follow this Question
Related Questions
One Signal dependecies issue 0 Answers
Android activity is restarting instead of pause/resuming... 0 Answers
PLease help: android plugins manifest woes 2 Answers
This app is incompatible with device. 0 Answers
unable to merge android manifests 0 Answers