NDK报错
FAILURE: Build failed with an exception. * Where: Build file '/Users/xiaoc/Documents/code/ireview/android/build.gradle.kts' line: 16 * What went wrong: A problem occurred configuring project ':app'. > [CXX1101] NDK at /Users/xiaoc/Library/Android/sdk/ndk/26.3.11579264 did not have a source.properties file * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. BUILD FAILED in 4m 31s Error: Gradle task assembleDebug failed with exit code 1
当出现上面的NDK报错,问题出在项目使用了需要C或C++语言,需要NDK的版本是
26.3.11579264
这时候的解决办法是打开Android studio下载