-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
下载后编译说找不到 ANDROID_HOME,但是我都设置了 #11
Comments
+1 |
这应该是一个一般性的如何设置环境变量并使其生效的问题。简单说,设置之后重启一下是最省事的办法了。 |
你看看我上面贴的那图,我都echo $ANDROID_HOME, 都显示路径了,我老早就设置了,不是一天两天了 |
我的也是报错,用AS 3.4.1 x64打开的 local.propertiesndk.dir=D:\ProgramsOthers\Permanent\AndroidSDK\ndk-bundle |
那大概是一个环境变量生效范围的问题。你执行 Mac或者Linux的环境变量“最全局”的设置应该是在 再细说一下这个问题。可以在Shadow的源码中全局搜索一下 |
我昨天也碰到这个问题,升级到AS3.4.1就好了 |
我用的是Mac,终端执行下这行就没事了 launchctl setenv ANDROID_HOME /Users/hubert/opt/sdk |
androidStudio 启动的环境和你设置ANDROID_HOME的环境不一致的问题. |
如果 ANDROID_HOME 在.bashprofile 中定义,试着在它前面添加 export 指令。 |
编译报错:ERROR: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
但是我上面图片显示环境变量都设置了,怎么回事?
The text was updated successfully, but these errors were encountered: