How to Include 64-bit and 32-bit native code in my app

前端 未结 1 1371
谎友^
谎友^ 2021-01-21 22:18

I can\'t uplaod my app to playstore got this error I have also build \"Android App Bundle\" to upload the app but again got this error.

This release is not compliant wit

1条回答
  •  温柔的废话
    2021-01-21 23:19

    In 2017, Google announced that in Aug'19 Apps on the PlayStore should provide the subsequent version of 32 bit native libraries in 64 bit. 64 bit is supported since Android 5( Lollipop ) days.

    Now to check your apk

    • Open Android Studio, and open any project.
    • From the menu, select Build > Analyze APK and select the APK which you want to evaluate.

    Now, if in the analyzer you look into lib folder, and in that you see any .so then you have 32-bit libraries or if you have any armeabi-v7a or x86, then you have 32-bit libraries If you see no .so files, then your app requires no upgrade versions.

    Upgrade to 64 bit architecture

        // Your app's build.gradle
    apply plugin: 'com.android.app'
    
    android {
       compileSdkVersion 27
       defaultConfig {
           appId "com.google.example.64bit"
           minSdkVersion 15
           targetSdkVersion 28
           versionCode 1
           versionName "1.0"
           ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
       }
    }
    

    For more info check this https://www.youtube.com/watch?v=E96vmWkUdgA

    0 讨论(0)
提交回复
热议问题