我想尝试新的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
任何想法如何解决这个问题?
谢谢:)
答案 0 :(得分:1)
这是在0.2中修复的,现在可以在Maven中使用。