【发布时间】:2012-09-25 17:41:45
【问题描述】:
我想尝试新的 android 构建系统 gradle,所以我安装了 gradle 1.2 并下载了适用于 android 的示例。
当我尝试使用命令 gradle build 构建基本示例时,我得到以下输出/错误:
Download http://repo1.maven.org/maven2/com/android/tools/build/gradle/0.1/gradle
-0.1.pom
Download http://repo1.maven.org/maven2/com/android/tools/build/builder/0.1/build
er-0.1.pom
Download http://repo1.maven.org/maven2/com/android/tools/build/gradle/0.1/gradle
-0.1.jar
Download http://repo1.maven.org/maven2/com/android/tools/build/builder/0.1/build
er-0.1.jar
:prepareDebugDependencies
:compileDebugAidl
:generateDebugBuildConfig
:crunchDebugRes
:processDebugManifest
:processDebugRes
:compileDebug
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
:compileDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebug'.
> Compilation failed; see the compiler error output for details.
* 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: 18.926 secs
任何想法如何解决这个问题?
谢谢你:)
【问题讨论】:
-
您是否只构建其中一个示例?如果没有,你能粘贴你的 build.gradle 文件吗?
-
我尝试在没有任何修改的情况下构建基本示例
-
是的,windows 也是,它在我的 mac 上运行良好...
-
是的,我认为这就是问题所在。我已经确定了几个 Windows 路径不起作用的地方。叹息。
-
太糟糕了..感谢您提供的信息!我期待修复,新系统在 mac 上看起来很有前途:)