3

I'm using Android Studio 2.2.3 trying to make a release build with following splits

splits {
            abi {
                enable true
                reset()
                include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' //select ABIs to build APKs for
                universalApk true //generate an additional APK that contains all the ABIs
            }
    }

This is generating the following files

app-arm64-v8a-release.apk
app-armeabi-v7a-release.apk
app-universal-release.apk
app-x86_64-release.apk
app-x86-release.apk

This seems fine but when I try to upload any of the above apk to playstore, I see native platforms as x86_64 for every one of them and also the number of supported devices seems to be 15.

APK Details

I have no idea what went wrong since the debug apk is working fine on the devices and emulators. So, I would appreciate if anybody could tell me what could be a cause for it and ways to fix it.

Thank you in advance.

Community
  • 1
  • 1
earthouser
  • 63
  • 8
  • https://developer.android.com/google/play/publishing/multiple-apks.html#Concepts Have a look at the Rules for multiple APKs: `Each APK must have a different version code, specified by the android:versionCode attribute` Also might be worth reading this whole document, specifically "Using a Single APK Instead" – Gavin Harris Feb 16 '17 at 02:30
  • https://blog.be-bound.com/apk-split-tutorial/ gives a good overview – Gavin Harris Feb 16 '17 at 02:43
  • 1
    @GavinHarris Thank you for the comment. It turned out that a library had dependency on x86_64. After excluding the library from the build. It seems to be working fine. – earthouser Feb 16 '17 at 09:27
  • 2
    @eth-new-user It would be nice if you could say which library gave you that problem. – Seven Jun 07 '18 at 14:58

0 Answers0