Google play 64-bit support

Google play 64-bit support
0

Hi

https://developer.android.com/distribute/best-practices/develop/64-bit

I would like to make my app support 64-bit on google play store.
After I upgrade to 3.17.1, I can build APK with arm64-v8a lib.
However, I’m not sure about should I support x86_64?

There is no support x86_64 in cocos2d-x v3.17.1 for now, how should I do to meet the requirement from Google play after 8/1 this year?

  1. support arm64-v8a armeabi-v7a x86?
  2. support arm64-v8a armeabi-v7a, remove x86?

Thanks,
Jo

According to the page,
“The simplest way to check for 64-bit libraries is to inspect the structure of your APK file. When built, the APK will be packaged with any native libraries needed by the app. Native libraries are stored in various folders based on the ABI. It is not required to support every 64-bit architecture, but for each native 32-bit architecture you support you must include the corresponding 64-bit architecture.”

It seems that I have to remove x86 because I cannot support x86_64.
Any ideas?

It’s simple.
You do it.

  1. support arm64-v8a armeabi-v7a x86?
  • proj.android/gradle.properties
PROP_APP_ABI=armeabi-v7a:arm64-v8a
1 Like

Hi @bluewind00 i am using cocos2dx 3.15 and android studio 3.0.1 and in my build.gradle
i have written

compileSdkVersion 28
buildToolsVersion ‘27.0.3’

    defaultConfig {
        applicationId "com.xyz.abc"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 1
        versionName "1.0.1"

I have used your solution, when i build my gradle its give no error and succeed.
but when i clean my project it gives error
Error:(537) *** Android NDK: Aborting… . Stop.

please help what i am doing wrong.

My environment is like this.

  • cocos2d-x 3.17.2

  • Android Studio 3.5.1

  • proj.android/build.gradle

dependencies {
    classpath 'com.android.tools.build:gradle:3.4.2'
}
  • proj.android/gradle/wrappergradle-wrapper.properties
#Fri Jun 14 12:29:18 GMT+09:00 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
  • proj.android/app/build.gradle
android {
    compileSdkVersion PROP_COMPILE_SDK_VERSION.toInteger()
    buildToolsVersion PROP_BUILD_TOOLS_VERSION

    defaultConfig {
        minSdkVersion PROP_MIN_SDK_VERSION
        targetSdkVersion PROP_TARGET_SDK_VERSION
  • proj.android/gradle.properties
PROP_COMPILE_SDK_VERSION=28
PROP_MIN_SDK_VERSION=19
PROP_TARGET_SDK_VERSION=28
PROP_BUILD_TOOLS_VERSION=29.0.0
PROP_BUILD_TYPE=ndk-build

Thanks for your reply. its fix my issue thanks.