Android Studio中的java assembleDebug错误
我已经更新到最新的Android SDK,并将JAVA_设置为主页。使用bash_配置文件
export JAVA_HOME=$(/usr/libexec/java_home)
,我得到以下错误:
Error Gradle:
FAILURE: Could not determine which tasks to execute.
* What went wrong:
Task 'assembleDebug' not found in project ':CrystalBall'.
* Try:
Run gradle tasks to get a list of available tasks.
Error: Could not execute build using Gradle distribution
http://services.gradle.org/distributions/gradle-1.6-bin.zip
我附上了一张截图:
我该怎么办
# 1 楼答案
我不认为这是海报上的问题,但为了其他人的利益,我将添加我在帮助Windows XP上遇到相同错误的人时发现的内容
他的问题似乎是Android Studio项目的路径中有空格(因为Windows XP使用文档和设置目录)。我让他将一个新项目生成到一个没有空格的目录中,它的构建和运行都没有问题。实际上可能是其他原因,但像往常一样,最好避免在路径中使用空格