1. 程式人生 > >ABIs [armeabi] are not supported for platform 的解決

ABIs [armeabi] are not supported for platform 的解決

解決方法,在app的build.gradle的ndk標籤下,將armeabi 刪除掉。

修改前:

ndk {
    abiFilters 'armeabi' , 'armeabi-v7a'
}

修改後:

ndk {
    abiFilters  'armeabi-v7a'
}

附詳細出錯log:

ABIs [armeabi] are not supported for platform. Supported ABIs are [armeabi-v7a, arm64-v8a, x86, x86_64].


Build command failed.


Error while executing process E:\Android\SDK\cmake\3.6.4111459\bin\cmake.exe with arguments {-HF:\obDepth(1)\obDepth\app -BF:\obDepth(1)\obDepth\app\.externalNativeBuild\cmake\release\armeabi -DANDROID_ABI=armeabi -DANDROID_PLATFORM=android-15 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=F:\obDepth(1)\obDepth\app\build\intermediates\cmake\release\obj\armeabi -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=D:\Android\Sdk\ndk-bundle -DCMAKE_CXX_FLAGS=-frtti -fexceptions -fPIC  -DCMAKE_TOOLCHAIN_FILE=D:\Android\Sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=E:\Android\SDK\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}


 (include)   CMakeLists.txt 
Open File


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage


CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage


-- Configuring incomplete, errors occurred!


ABIs [armeabi] are not supported for platform. Supported ABIs are [armeabi-v7a, arm64-v8a, x86, x86_64].


Build command failed.


Error while executing process E:\Android\SDK\cmake\3.6.4111459\bin\cmake.exe with arguments {-HF:\obDepth(1)\obDepth\app -BF:\obDepth(1)\obDepth\app\.externalNativeBuild\cmake\debug\armeabi -DANDROID_ABI=armeabi -DANDROID_PLATFORM=android-15 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=F:\obDepth(1)\obDepth\app\build\intermediates\cmake\debug\obj\armeabi -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=D:\Android\Sdk\ndk-bundle -DCMAKE_CXX_FLAGS=-frtti -fexceptions -fPIC  -DCMAKE_TOOLCHAIN_FILE=D:\Android\Sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=E:\Android\SDK\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}


 (include)   CMakeLists.txt 
Open File


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage


CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage


-- Configuring incomplete, errors occurred!