A problem occurred configuring project ':app'. > NDK not configured.
新版本的AS 3.6.3, 直接开新 C++ 专案, 编译是不会通过的。。
解决方法:
Build.gradle
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
}
里面加上
ndkVersion '21.1.6352462'
本文介绍了解决在使用Android Studio 3.6.3版本创建C++专案时遇到的编译错误的方法。通过在Build.gradle文件中指定ndkVersion为'21.1.6352462',可以成功配置并编译C++专案。
A problem occurred configuring project ':app'. > NDK not configured.
新版本的AS 3.6.3, 直接开新 C++ 专案, 编译是不会通过的。。
解决方法:
Build.gradle
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
}
里面加上
ndkVersion '21.1.6352462'
1177
656
5073

被折叠的 条评论
为什么被折叠?