Android Studio 执行:
./gradlew clean
报以下警告:
解决方法
在要添加的NDK路径下面,新建立了一个空文件夹platforms便解决了这个问题:
接下来报:
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版本即可。但指定版本的话,会报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.