我刚刚安装了Ubuntu 14.04。我在Ubuntu One上保存了一个android工作室项目。 如果我创建一个新项目,android studio工作正常,但如果我导入该项目我得到:
Gradle 'MyProject' project refresh failed:
Cause: error in opening zip file
Gradle settings
我的日志以:
开头2014-03-29 15:06:41,518 [ 323947] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /usr/lib/jvm/java-1.7.0-openjdk-amd64
2014-03-29 15:06:41,522 [ 323951] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /usr/lib/jvm/java-1.7.0-openjdk-amd64
2014-03-29 15:06:41,526 [ 323955] WARN - .project.GradleExecutionHelper - can not get BuildEnvironment model
org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from 'http://services.gradle.org/distributions/gradle-1.11-all.zip'.
答案 0 :(得分:0)
首先确保您可以在命令行上构建项目:
./gradlew assembleDebug
这假设您有./gradlew
和gradle/
目录。
如果上述方法有效,那么您应该可以按照以下步骤将项目导入Android Studio:
settings.gradle