ERROR: Could not find method armeabi-v7a() for arguments [arm64-v8a]

点点圈 提交于 2019-12-08 06:13:27

问题


I tried to change my application to support 32-bit and 64-bit, but when i change the build.gradle like this.

android {
compileSdkVersion 28
defaultConfig {
    applicationId "id.co.poslogistics.agendakegiatan"
    minSdkVersion 15
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    ndk.abiFilters = 'armeabi-v7a' 'arm64-v8a' 'x86' 'x86_64'
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

but when i gradle it, the error will show like this

ERROR:

Could not find method armeabi-v7a() for arguments [arm64-v8a] on DefaultConfig_Decorated{name=main, dimension=null, minSdkVersion=DefaultApiVersion{mApiLevel=15, mCodename='null'}, targetSdkVersion=DefaultApiVersion{mApiLevel=28, mCodename='null'}, renderscriptTargetApi=null, renderscriptSupportModeEnabled=null, renderscriptSupportModeBlasEnabled=null, renderscriptNdkModeEnabled=null, versionCode=1, versionName=1.0, applicationId=id.co.poslogistics.agendakegiatan, testApplicationId=null, testInstrumentationRunner=null, testInstrumentationRunnerArguments={}, testHandleProfiling=null, testFunctionalTest=null, signingConfig=null, resConfig=null, mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}, mWearAppUnbundled=null} of type com.android.build.gradle.internal.dsl.DefaultConfig.

can anyone help me. thanks


回答1:


Your config

ndk.abiFilters = 'armeabi-v7a' 'arm64-v8a' 'x86' 'x86_64'

should be

ndk.abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'

or

ndk {
    abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86' ,'x86_64'
}


来源:https://stackoverflow.com/questions/54565105/error-could-not-find-method-armeabi-v7a-for-arguments-arm64-v8a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!