本文介绍了错误:找不到参数的方法 armeabi-v7a() [arm64-v8a]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试更改我的应用程序以支持 32 位和 64 位,但是当我像这样更改 build.gradle 时.

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

错误:

在 DefaultConfig_Decorated{name=main, dimension=null, minSdkVersion=DefaultApiVersion{mApiLevel=15, mCodename='null'}, targetSdkVersion=DefaultApiVersion{mApiLevel 上找不到参数 [arm64-v8a] 的方法 armeabi-v7a()=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={}、mWearcom.android.build.gradle.internal.dsl.DefaultConfig 类型的 null}.

谁能帮帮我.谢谢

推荐答案

你的配置

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

应该

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

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

这篇关于错误:找不到参数的方法 armeabi-v7a() [arm64-v8a]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 19:30