我可以在sdk.dir路径之外设置ndk.dir吗,为什么没有自动创建ndk.dir呢? [英] Can I set the ndk.dir out of the sdk.dir path, why there is no ndk.dir automatic creation?

查看:830
本文介绍了我可以在sdk.dir路径之外设置ndk.dir吗,为什么没有自动创建ndk.dir呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Windows到本地Mac环境中获取一个项目.

I fetch a project from Windows to my local Mac environment.

您会在Gradle Script下看到local.properties:

ndk.dir=D\:\\sdk\\ndk-bundle
sdk.dir=/Users/lisa/software/android-sdk-macosx

您看到有ndk.dirsdk.dir,后者是我的新Mac SDK路径,但是ndk.dir现在没有改变.从D\:\\sdk\\ndk-bundle中,我们是否知道ndk-bundle应该在sdk路径(/Users/lisa/software/android-sdk-macosx)下?

you see there has the ndk.dir and sdk.dir, the latter is my new Mac SDK path, but the ndk.dir did not change now. from the D\:\\sdk\\ndk-bundle, whether we know the ndk-bundle should be under the sdk path(/Users/lisa/software/android-sdk-macosx)?

,但是在/Users/lisa/software/android-sdk-macosx中没有该目录:

but in the /Users/lisa/software/android-sdk-macosx, there is no that directory:

lisa-MacBook-Pro:android-sdk-macosx ldl$ pwd
/Users/lisa/software/android-sdk-macosx
lisa-MacBook-Pro:android-sdk-macosx ldl$ ls
SDK Readme.txt  build-tools platforms   sources     temp
add-ons     platform-tools  skins       system-images   tools

是否应该创建/Users/lisa/software/android-sdk-macosx/ndk-bundle?并设置ndk.dir?

Whether I should create the /Users/lisa/software/android-sdk-macosx/ndk-bundle? and set ndk.dir?

我可以在任何地方设置ndk.dir吗,例如sdk.dir路径?

can I set the ndk.dir anywhere, such as out the sdk.dir path?

推荐答案

我解决了此问题,在设置">插件">"Android NDK支持"中禁用了NDK支持.

I solved this problem disabling NDK Support in Settings>Plugins>Android NDK support.

这篇关于我可以在sdk.dir路径之外设置ndk.dir吗,为什么没有自动创建ndk.dir呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆