Android Studio Upgrade 3.4.1 Universal APK Option Missing?

Android Studio Upgrade 3.4.1 Universal APK Option Missing?
0

I have loaded an (old) Cocos2d-x project (3.15) using NDK 17 into Android Studio which has just been updated to 3.4.1. I am only offered individual build variants for the 3 chosen cpu options - armeabi, amreabi-v7a and x-86:
Build%20Variants

Previously the options just included ‘debug’ and ‘release’.

I have checked any files changes and the only two are:

build.gradle

classpath 'com.android.tools.build:gradle 3.2.1

is now

classpath 'com.android.tools.build:gradle 3.4.1

and gradle-wrapper.properties

distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip

is now

distributionUrl=https://services.gradle.org/distributions/gradle-5.1.1-all.zip

I have NO splits (never had…).

I would like to have the option of generating a single universal apk as I could previously, i.e. build variants debug/release.

Any guidance gratefully accepted.

when you go to generate a apk it should still include all cpu architectures in the apk if you have not included a split block

Thanks for the reply.

Yep, I analysed the generated apk and, as you said, it contains all the build architectures as specified.

Cheers

1 Like