- Home /
Wrong data in the Android manifest after build gradle with export in Unity 2018.1
Hello, I have a problem with exporting project using Gradle. Unity generates wrong Android manifest without specifying attributes from PlayerSettings, like: package attribute, versionName, versionCode, etc. It looks like this:
package="APP_BUNDLE_ID" android:versionName="2.0" android:versionCode="2"
But has to be like this:
package="com.mytestcompany.mytestproject" android:versionName="2.7.0" android:versionCode="12"
I migrated from Unity 2017.4.2f2 to Unity 2018.1.3f1 and faced this issue. I'm also using StansAsset's AndroidNative plugin. Would really appreciate some help.
Answer by OleSviper · Jun 26, 2018 at 10:09 PM
Same issue here, did you figure out what is going on @unity_0fmczLs2vNuMTQ ? We are using Unity 2018.1.6f1 at the moment but I think this is a regression introduced with 2018.1 This question now has 200 followers, I can not find more information on this or a bug report. For now, I modify the AndroidManifest.xml with some kind of "PreProcess" BuildStep, to set these attributes correctly.