[英]Gradle not finding updated NDK path & project directory
I moved my Android SDK
(and NDK
) when my hard drive failed. 当硬盘驱动器发生故障时,我移动了Android SDK
(和NDK
)。
In my working project, I updated local.properties
to reflect these changes in the variables ndk.dir
and sdk.dir
, yet when I run ./gradlew clean --info
on the command line from within my project directory, gradle
gives me a failure at the following command: 在我的工作项目中,我更新了local.properties
以在变量ndk.dir
和sdk.dir
反映这些更改,但是当我在项目目录中的命令行上运行./gradlew clean --info
时, gradle
会给我一个提示。以下命令失败:
<old_ndk_path>/ndk-build NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=<oldprojdir>/app/src/main/jni/Android.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDK_DEBUG=1 APP_PLATFORM=android-23 NDK_OUT=<oldprojdir>/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=<oldprojdir>/app/build/intermediates/ndkBuild/debug/lib clean
It's no wonder that the task fails, since no executable exists at that path now, but how can I get gradle
to make use of the new NDK
path? 这也难怪,任务失败,因为没有可执行在这条道路现在已经存在,但我怎么能得到gradle
以利用新的NDK
路径? And how can I make it use the new project directory? 以及如何使它使用新的项目目录?
删除<projdir>/.gradle
目录,然后重试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.