我想尝试新的 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
任何想法如何解决这一问题?
谢谢 :)