scala-android插件
发布时间:2020-12-16 10:02:05 所属栏目:安全 来源:网络整理
导读:从IntelliJ内部运行sbt时,我遇到运行 scala– android插件的问题.当我从Mac终端为同一个项目运行sb??t时,我没有错误: ~/Documents/my-android-project $sbt[info] Loading global plugins from /Users/rgoodwin/.sbt/plugins[info] Loading project definit
从IntelliJ内部运行sbt时,我遇到运行
scala–
android插件的问题.当我从Mac终端为同一个项目运行sb??t时,我没有错误:
~/Documents/my-android-project $sbt [info] Loading global plugins from /Users/rgoodwin/.sbt/plugins [info] Loading project definition from /Users/rgoodwin/Documents/my-android-project/project [info] Set current project to (in build file:/Users/rgoodwin/Documents/my-android-project/) 但是当我尝试从IntelliJ运行sbt时,我得到: [info] Loading global plugins from /Users/rgoodwin/.sbt/plugins [info] Loading project definition from /Users/rgoodwin/Documents/my-android-project/project [error] Android SDK not found. You might need to set ANDROID_SDK_HOME or ANDROID_SDK_ROOT or ANDROID_HOME [error] Use 'last' for the full log. Project loading failed: (r)etry,(q)uit,(l)ast,or (i)gnore? 为什么不在IntelliJ内部取出我设置的路径名? 解决方法
我认为您可能在.bashrc文件中设置了ANDROID_SDK_HOME,因此在运行sbt时会设置此属性.
运行Intellij时,不要从命令行启动它,因此当您从Intellij运行sbt时,未定义ANDROID_SDK_HOME. 对于MacOS,我认为您可以设置全局环境变量(请查看http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/EnvironmentVars.html). (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |