Android Studio 執(zhí)行:
./gradlew clean
報(bào)以下警告:
解決方法
在要添加的NDK路徑下面袖肥,新建立了一個(gè)空文件夾platforms便解決了這個(gè)問題:
接下來報(bào):
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi
解決方法
指定NDK位置:(有說Android studio4.1版本已不需要指定ndk位置,只需要指定ndk版本即可振劳。但指定版本的話椎组,會報(bào)Could not find method ndkVersion() for arguments [22.1.7171670] on object of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension
)
1、打開Project Structure->SDK Location:
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.tencent.bugly:crashreport:latest.release.