编辑:(aug-2016)
这个问题是从2013年11月开始的(当Android Studio仍处于开发者预览模式时),
当前(AS v2.2,2016年8月)在安装期间,AS要求选择SDK文件夹(或默认安装),它会自动应用于您正在打开的项目.
这意味着任何可能的解决方法或修复都无关紧要,因为问题不再可再生.
原始问题:
我们这个项目有几个已经配置好的模块,并且使用包装器在另一台开发者PC上正确执行.我将完整的git子模块克隆到我的机器中.
下面是我的命令行的直接打印:
$ ./gradlew
FAILURE: Build failed with an exception.
* Where:
Build file '/home/budius/project_name/ActionBar-PullToRefresh/library/build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':ActionBar-PullToRefresh:library'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 6.378 …Run Code Online (Sandbox Code Playgroud) 我试图在控制台输出中调查项目构建错误,如下所示:
:myapp:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
...
...
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Run Code Online (Sandbox Code Playgroud)
我怀疑它与资源未找到错误有关.我的问题是,在IDE级别,我如何添加--stacktrace或--debug选项,以便它可以为我调试生成更多信息?
从IntelliJ 13获得此投诉:
8:15:48 PM Gradle '<project>' project refresh failed:
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
Build file '/<project>/build.gradle' line: 20
: Gradle settings
Run Code Online (Sandbox Code Playgroud)
我试图在我能想到的每个目录中垃圾邮件我的local.properties但仍然收到此错误.是什么赋予了?