Android和摇篮:找不到java.lang中的类路径或引导类路径 [英] Android and Gradle: Unable to find java.lang in classpath or bootclasspath

查看:592
本文介绍了Android和摇篮:找不到java.lang中的类路径或引导类路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试新的Andr​​oid系统版本的gradle,所以我的gradle安装1.2和下载的样本机器人。

i wanted to try the new android build system gradle, so i installed gradle 1.2 and downloaded the samples for android.

当我尝试建立与命令gradle这个基本建成示例中,我得到下面的输出/错误:

when i try to build the basic sample with the command gradle build, i get the following output / error:

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

任何想法如何解决这一问题?

Any ideas how to fix this?

感谢您:)

推荐答案

这是固定在0.2这是目前提供的Maven。

This is fixed in 0.2 which is now available in Maven.

这篇关于Android和摇篮:找不到java.lang中的类路径或引导类路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆