Android Studio Upgrade 3.4.1 Universal APK Option Missing?

  • Replies:5
zx12a1
  • Forum posts: 4

May 30, 2019, 9:42:10 AM via Website

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:

image

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= ...://services.gradle.org/distributions/gradle-4.6-all.zip
is now
distributionUrl=....://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 simply 'debug' OR 'release'.

Any guidance gratefully accepted.

Reply
James Watson
  • Forum posts: 1,584

May 31, 2019, 4:10:10 AM via Website

Does your module 'P...' use some native code library? If yes, check whether there are sub-folders named with 'armeabi', 'armeabi-v7a' and 'x86' in jniLibs folder of the app src.

You may post the content or screenshot of the build.gradle file of that module here for more advice.

Download size < 0.15 MB. But also accurate enough, ad-free & free.
The minimalist app available on Play Store: https://goo.gl/ws42fN
Blog: https://okblackcafe.blogspot.com Your 5-star is appreciated.

Helpful?
Reply
James Watson
  • Forum posts: 1,584

May 31, 2019, 4:22:00 AM via Website

By the way, I am wondering if anyone knows what's the difference between 'armeabi' and 'armeabi-v7a'.

As far as I know, the sub-folder 'armeabi-v7a' of jniLibs is for 32-bit .so library files while 'armeabi-v8a' is for 64-bit ones.

Is 'armeabi' the same as 'armeabi-v7a' at all?

Thanks.

— modified on May 31, 2019, 4:41:34 AM

Download size < 0.15 MB. But also accurate enough, ad-free & free.
The minimalist app available on Play Store: https://goo.gl/ws42fN
Blog: https://okblackcafe.blogspot.com Your 5-star is appreciated.

Helpful?
Reply
zx12a1
  • Forum posts: 4

May 31, 2019, 11:00:13 AM via Website

Hi James

thanks for replying. All my supporting libs can be found.

I have responded to my own query with some further information which sort of answers my question...

Helpful?
Reply
zx12a1
  • Forum posts: 4

May 31, 2019, 11:03:14 AM via Website

Please understand my knowledge is patchy...

armeabi is the old ARM CPU architecture which I understand is almost non-existent in the marketplace nowadays.

armeabi-v7a is the same architecture with floating point support and is still in use.

Helpful?
Reply
zx12a1
  • Forum posts: 4

May 31, 2019, 11:06:24 AM via Website

Following my post I analysed the debug apk generated when I selected debug-x86. See the screenshot which shows all three available architectures in the apk, in other words I have a universal apk...

image

Helpful?
Reply