Search Issue Tracker




Found in


Issue ID




[Android] Android manifest contains incorrect values for platformBuildVersionCode and platformBuildVersionName




Priority: 2Necessary for shipping a final release


Severity: 3Secondary functionality broken

Steps to reproduce:
1. Open the attached project
2. Build for Android
3. Explore the apk's manifest using Android Studio or aapt (~/Android/Sdk//build-tools/28.0.3/aapt l -a build.apk)
4. Notice that platformBuildVersionCode and platformBuildVersionName values are incorrect

Expected result: platformBuildVersionCode is equal to targetSdkVersion (e.g. 28) and platformBuildVersionName is equal to target SDK name (e.g. 9)
Actual result: platformBuildVersionCode is equal to versionCode and platformBuildVersionName is equal to versionName (error.png)

Reproducible with: 2017.4.17f1, 2017.4.19f1, 2018.3.0a1, 2018.3.3f1, 2019.1.0b1, 2019.2.0a3
Not reproducible with: 2017.4.16f1

Comments (2)

  1. 316baa94f58bbb467159adfeb55b9606?d=mm


    Apr 05, 2019 17:00

    This still isn't fixed for me in Unity 2017.4.24f1.

  2. 316baa94f58bbb467159adfeb55b9606?d=mm


    Mar 08, 2019 01:57

    It's worth noting that Unity 2017.4.17f1 has the following in the release notes:

    "Backwards Compatibility Breaking Changes
    Android: Android Gradle plugin is updated up to version 3.2
    Android: Required Android build tools version is increased up to 28.0.3"

    Found here:

    Seems likely that the Android Gradle plugin update is causing the issues.

    Is also reproducible on Android 2017.4.22f1, when using Gradle as the "Build System".

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.