添加库后,此版本仍不符合Google Play 64位要求错误 [英] This release is not compliant with the Google Play 64-bit requirement error still after adding libraries
问题描述
我正在Play商店上载一个视频编辑器应用程序,该应用程序具有包含一些本机代码的库.因此,我通过将其添加到gradle中使其与64位兼容.
I am uploading a video editor app on play store that has libraries with some native code. So I made it compatible for 64bit by adding this to gradle.
ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
添加它仍然没有解决问题.当我在Playstore上载时,仍然会出现64位错误.这是我的礼物
Adding it still problem is not solved . When I upload on playstore it still gives 64bit error. This is my gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.maam.videoeditor"
minSdkVersion 17
targetSdkVersion 28
versionCode 5
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation "com.android.support:customtabs:28.0.0"
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.writingminds:FFmpegAndroid:0.3.2'
}
我在gradle中添加了64位行,但是在上传64位时不兼容的错误显示.请提供解决此问题的指南.
I have added 64bit line in gradle but on uploading 64bit not compliant error shows. Kindly guide on solving this problem.
推荐答案
@Osama:首先,请检查您的apk文件是否具有64位库.有很多方法可以做到这一点: -使用Android Studio的分析Apk功能(有关更多详细信息,请参阅: https://developer.android.com/distribute/best-practices/develop/64位) -存档您的apk文件,并检查该文件夹内的内容. 如果您的应用程序没有文件夹"arm64-v8a",则意味着您的应用程序尚未将其版本控制为64位以下.
@Osama: First of all, please check if your apk file have library in 64 bit. There are many way to do this: - Use Analyze Apk function of Android Studio (for more detail, please refer: https://developer.android.com/distribute/best-practices/develop/64-bit) - Archive your apk file and check inside that folder. If your app doesn't has folder "arm64-v8a" it mean your app still not versioned up to 64 bit.
关于您的要求,如果希望您的应用程序支持64位体系结构,则还必须将本机库(.so文件)版本升级到64位.
About your requirement, if you want your app is support 64 bit architecture, you must also version up your native library (.so file) to 64 bit.
关于您的代码:
ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'"
我不建议您添加此项目,除非您使用Android Studio的AppBundle新功能. 因为当您使用它时,将为每种体系结构创建4个新的apk文件. 而且,如果您上传arm64-v8a体系结构的文件,该错误将消失,但它将通知您apk支持的设备数量少于以前的版本,因为它不支持32位设备.
I don't recommend you add this unless you use AppBundle new feature of Android Studio. Because when you use this, there will be 4 new apk file created for each architecture. And if you upload the file of arm64-v8a architecture, the error will disappear but it will announce you that your apk is support less device than previous release because it cannot support 32 bit device.
有2种可能的解决方案:
There are 2 possible solution for this problem:
-
将所有库文件放入您的apk文件中,这会使您的应用程序更大,但允许您的应用程序支持所有设备.
Put all library file to your apk file, it will make your app bigger but it will allow your app to support every device.
为您的项目应用AppBundle.有关此的更多详细信息,请检查以下链接:
Apply AppBundle for your project. For more detail about this, please check this link: https://android.jlelse.eu/a-practical-guide-to-android-app-bundle-for-beginners-7e8d93831828
这篇关于添加库后,此版本仍不符合Google Play 64位要求错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!