我正在尝试上传我的应用程序以播放控制台,但不能。每次都给我带来错误此版本不符合Google Play 64位要求。以下APK或应用捆绑包可用于64位设备,但它们只有32位本机代码:[29] >
以下是我当前的应用级别gradle文件
android {
compileSdkVersion 29
buildToolsVersion '28.0.3'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.gogreenfood9z.foodcart"
minSdkVersion 19
targetSdkVersion 29
versionCode 30
versionName "1.0"
ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
//added for onesignal
manifestPlaceholders = [
onesignal_app_id : 'a7050dd0-9b02-4b5a-a2f2-fcdb594e9609',
// Project number pulled from dashboard, local value is ignored.
onesignal_google_project_number: 'REMOTE'
]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
下面是我当前的依赖关系
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.wang.avi:library:2.1.3'
implementation 'com.squareup.picasso:picasso:2.3.2'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.daimajia.slider:library:1.1.5@aar'
implementation 'com.makeramen:roundedimageview:2.3.0'
testImplementation 'junit:junit:4.12'
implementation 'com.balysv:material-ripple:1.0.2'
implementation 'com.squareup.okhttp3:okhttp:3.3.1'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.intuit.ssp:ssp-android:1.0.5'
implementation 'com.intuit.sdp:sdp-android:1.0.5'
implementation 'com.github.delight-im:Android-AdvancedWebView:v3.0.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
implementation 'com.github.myinnos:AndroidScratchCard:v1.0'
implementation 'com.google.maps.android:android-maps-utils:0.4'
def multidex_version = "2.0.1"
implementation "androidx.multidex:multidex:$multidex_version"
implementation 'io.github.inflationx:calligraphy3:3.1.1'
implementation 'io.github.inflationx:viewpump:2.0.3'
api "com.sothree.slidinguppanel:library:3.0.0" //slideup panel
//for dynamic link refer user
api "com.google.firebase:firebase-invites:17.0.0"
api "com.google.firebase:firebase-database:17.0.0"
api "com.google.firebase:firebase-auth:17.0.0"
api "com.google.android.gms:play-services-maps:17.0.0"
api "com.google.android.gms:play-services-location:17.0.0"
api "com.google.android.gms:play-services-places:17.0.0"
implementation "com.google.firebase:firebase-core:17.0.0"
implementation "com.google.firebase:firebase-config:17.0.0"
implementation 'com.google.firebase:firebase-messaging:20.0.0'
implementation "com.google.android.gms:play-services-plus:17.0.0"
implementation 'com.google.firebase:firebase-config-ktx:19.1.4'
implementation 'com.google.firebase:firebase-analytics-ktx:17.4.3'
implementation 'io.github.inflationx:calligraphy3:3.1.1'
implementation 'io.github.inflationx:viewpump:2.0.3'
api('com.squareup.retrofit2:retrofit:2.3.0') {
exclude module: 'okhttp'
}
api 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.3.0'
implementation('com.google.android.libraries.places:places:2.0.0') {
}
//for one signal
implementation 'com.onesignal:OneSignal:[3.15.0, 3.99.99]'
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'io.fabric'
我尝试过使用ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
然后尝试仅生成32位ndk.abiFilters 'armeabi-v7a','x86'
但对我没有任何帮助。当我在android studio中分析apk时,它也没有显示任何lib目录。我还尝试了使用以下代码进行拆分
splits {
abi {
enable true
reset()
include "x86", "mips"
universalApk false
}
}
但是对我没有任何帮助