机器人工作室0.4.2:摇篮工程同步失败错误机器人工作室0.4.2:摇篮工程同步失败错误(andro

2019-05-09 00:06发布

更新到0.4.2后,我打开一个项目时出现此错误:“摇篮工程同步失败。 基本功能(例如编辑,调试)将不会proprerly工作”

事件日志显示此:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

    at org.gradle.launcher.daemon.bootstrap.DaemonGreeter.parseDaemonOutput(DaemonGreeter.java:34)
    at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startProcess(DefaultDaemonStarter.java:109)
    at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startDaemon(DefaultDaemonStarter.java:90)
    at org.gradle.launcher.daemon.client.DefaultDaemonConnector.startDaemon(DefaultDaemonConnector.java:95)
    at org.gradle.launcher.daemon.client.DefaultDaemonConnector.connect(DefaultDaemonConnector.java:72)
    at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:149)
    at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:74)
    at org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:42)
    at org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:29)
    at org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:53)
    at org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:30)
    at org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:106)
    at org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:100)
    at org.gradle.tooling.internal.provider.DefaultConnection.run(DefaultConnection.java:143)
    at org.gradle.tooling.internal.consumer.connection.ActionAwareConsumerConnection.run(ActionAwareConsumerConnection.java:40)
    at org.gradle.tooling.internal.consumer.DefaultBuildActionExecuter$1.run(DefaultBuildActionExecuter.java:53)
    at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:82)
    at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:58)
    at org.gradle.tooling.internal.consumer.connection.LoggingInitializerConsumerActionExecutor.run(LoggingInitializerConsumerActionExecutor.java:44)
    at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:55)
    at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
2014-01-12 02:57:48,886 [  33025]   INFO - .BaseProjectImportErrorHandler - Failed to import Gradle project at 'C:/android/workspace_studio/Noggle' 
org.gradle.tooling.GradleConnectionException: Could not run build action using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.9-all.zip'.
    at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:55)
    at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)
    at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
    at org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)
    at org.gradle.tooling.internal.consumer.DefaultBuildActionExecuter.run(DefaultBuildActionExecuter.java:43)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.doResolveProjectInfo(GradleProjectResolver.java:170)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.access$000(GradleProjectResolver.java:61)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver$1.fun(GradleProjectResolver.java:117)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver$1.fun(GradleProjectResolver.java:113)
    at org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.execute(GradleExecutionHelper.java:182)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:113)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:61)
    at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:41)
    at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:37)
    at com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute(AbstractRemoteExternalSystemService.java:59)
    at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.resolveProjectInfo(RemoteExternalSystemProjectResolverImpl.java:37)
    at com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSystemProjectResolverWrapper.resolveProjectInfo(ExternalSystemProjectResolverWrapper.java:49)
    at com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:48)
    at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:137)
    at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:123)
    at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute(ExternalSystemUtil.java:471)
    at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4$2.run(ExternalSystemUtil.java:549)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:464)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
    at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:373)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:436)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:153)
Caused by: org.gradle.api.GradleException: Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/1.9/userguide/gradle_daemon.html
Please read below process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

    at org.gradle.launcher.daemon.bootstrap.DaemonGreeter.parseDaemonOutput(DaemonGreeter.java:34)
    at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startProcess(DefaultDaemonStarter.java:109)
    at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startDaemon(DefaultDaemonStarter.java:90)
    at org.gradle.launcher.daemon.client.DefaultDaemonConnector.startDaemon(DefaultDaemonConnector.java:95)
    at org.gradle.launcher.daemon.client.DefaultDaemonConnector.connect(DefaultDaemonConnector.java:72)
    at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:149)
    at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:74)
    at org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:42)
    at org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(DaemonBuildActionExecuter.java:29)
    at org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:53)
    at org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(LoggingBridgingBuildActionExecuter.java:30)
    at org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:106)
    at org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:100)
    at org.gradle.tooling.internal.provider.DefaultConnection.run(DefaultConnection.java:143)
    at org.gradle.tooling.internal.consumer.connection.ActionAwareConsumerConnection.run(ActionAwareConsumerConnection.java:40)
    at org.gradle.tooling.internal.consumer.DefaultBuildActionExecuter$1.run(DefaultBuildActionExecuter.java:53)
    at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:82)
    at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:58)
    at org.gradle.tooling.internal.consumer.connection.LoggingInitializerConsumerActionExecutor.run(LoggingInitializerConsumerActionExecutor.java:44)
    at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:55)
    at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
2014-01-12 02:57:48,893 [  33032]   WARN - nal.AbstractExternalSystemTask - A fatal exception has occurred. Program will exit.

com.intellij.openapi.externalSystem.model.ExternalSystemException: A fatal exception has occurred. Program will exit.

    at org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.execute(GradleExecutionHelper.java:185)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:113)
    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:61)
    at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:41)
    at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:37)
    at com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute(AbstractRemoteExternalSystemService.java:59)
    at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.resolveProjectInfo(RemoteExternalSystemProjectResolverImpl.java:37)
    at com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSystemProjectResolverWrapper.resolveProjectInfo(ExternalSystemProjectResolverWrapper.java:49)
    at com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:48)
    at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:137)
    at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:123)
    at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute(ExternalSystemUtil.java:471)
    at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4$2.run(ExternalSystemUtil.java:549)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:464)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
    at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:373)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:436)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:153)

2014-01-12 02:57:48,895 [  33034]   WARN - .project.GradleProjectImporter -  
2014-01-12 02:57:48,895 [  33034]   INFO - .project.GradleProjectImporter - A fatal exception has occurred. Program will exit.


Consult IDE log for more details (Help | Show Log) 
2014-01-12 02:57:48,941 [  33080]   INFO - ution.rmi.RemoteProcessSupport - Port/ID: 21325/Maven3ServerImpl5ed05101 
2014-01-12 02:57:49,424 [  33563]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $APP_CONFIG$/remote-servers.xml file is null 
2014-01-12 02:57:50,185 [  34324]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 13482 ms 

版本0.4.1是表现对我非常好。

Answer 1:

我假设我可以回答我的问题....这为我工作。

  1. 文件 - >无效缓存/重新启动
  2. 关机的Android工作室
  3. 重命名/用户主目录中删除文件夹.gradle
  4. 重新启动的Android工作室让它下载它需要的所有东西摇篮
  5. 摇篮打造成功!
  6. 重建工程....成功!

出于好奇我比较老.gradle的结构和新的...他们是相当不同的!

所以,我会看到如何去0.4.2 :)



Answer 2:

我有同样的问题,但最后我可以永远解决这个问题
脚步:

  1. 删除gradle.gradle从项目文件夹中的文件夹。
  2. 在Android Studio中:打开你的项目,然后: 文件- >设置- >编译器- > gradle这个 :启用offline mode
    注:在相对较新的Android工作室, 脱机模式已被转移到gradle这个设置。
  3. 关闭项目: 文件- >关闭项目
  4. 连接到Internet,然后再次打开你的项目,然后让Android为Studio下载想要的东西

如果成功,那么:)
其他

  1. 如果遇到gradle project sync failed再次请按照下列步骤操作:
  2. 从下载最新的gradle这个包在这个目录
  3. 提取它,并把它的地方(例如F:\ gradle这个-1.10)
  4. 转到您的Android Studio并加载您的项目,然后打开文件- >设置- > gradle这个 ,在这个页面中点击Use local gradle distribution
  5. 键入您的文件夹的gradle有地址

恭喜你完成了!



Answer 3:

同样在这里,更新到0.4.2也打破了我的情况下,一切...它无关,与内存的使用情况:我有8演出的记忆,我有3.5演出免费大气压,所以没有足够的内存来启动一个JVM是公牛...

实际上,它可能有一些做摇篮的版本,我看着错误日志,发现这一点:

2014年1月14日09:00:30918 [61112] WARN - nal.AbstractExternalSystemTask - 项目是使用旧版本的Android摇篮插件。 支持的最低版本是0.7.0。 请您的build.gradle文件更新的依赖性“com.android.tools.build:gradle”的版本。

您正在使用摇篮1.8版,这是不支持的。 请使用版本1.9。 请点支持的摇篮版本在项目的摇篮设置或项目的摇篮包装(如适用)。com.intellij.openapi.externalSystem.model.ExternalSystemException:项目是使用旧版本的Android摇篮插件。 支持的最低版本是0.7.0。 请您的build.gradle文件更新的依赖性“com.android.tools.build:gradle”的版本

-

您正在使用摇篮1.8版,这是不支持的。 请使用版本1.9。

请点支持的摇篮版本在项目的摇篮设置或项目的摇篮包装(如适用)。

OK,我固定它自己...在项目目录中去/ gradle产出/包装目录并编辑gradle这个-包装属性文件这样的:

distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-all.zip

打开后Android Studio中的项目,并选择在/ src目录中的build.gradle文件,并将其编辑到这一点:

dependencies {
        classpath 'com.android.tools.build:gradle:0.7.+'
    }

这样修复它后,我发现这篇文章: http://tools.android.com/recent/androidstudio040released



Answer 4:

  1. 打开文件 - >设置
  2. 选择摇篮
  3. 马克“使用本地grandle分布”,然后选择grandle家为前路径:C:/Users/high_hopes/.gradle/wrapper/dists/gradle-2.1-all/27drb4udbjf4k88eh2ffdc0n55/gradle-2.1.1然后选择服务的目录路径C :/Users/high_hopes/.gradle
  4. 应用所有更改
  5. 打开文件 - >无效缓存/重启...
  6. 选择只需重新启动


Answer 5:

报告对Android工作室反馈网站问题后,他们找到了我一个解决方案。 我现在用的摇篮1.10和Android工作室0.4.3。

这里是链接到页面的我如何固定我的描述: https://code.google.com/p/android/issues/detail?id=65219

希望这可以帮助!



Answer 6:

我发现在网络上一个答案,它为我工作,所以在这里它是:

当你的项目的gradle同步失败的错误,错误的详细信息:

VM的初始化过程中出现错误无法预留对象堆错误足够的空间:无法创建Java虚拟机。 错误:发生了致命的异常。 程序将会退出。

然后,在Windows上,请访问:

控制面板>系统>高级(标签)>环境变量>系统变量>新:

变量名_JAVA_OPTIONS和变量值-Xmx512M

省省吧,重新启动AS。 也许工作这段时间,因为它为我做的。

来源: http://www.savinoordine.com/android-studio-gradle-windows-7/



Answer 7:

我面临这个问题很多次,从最近几天,回答上述工作完全正常。 我一直在寻找这个问题的确切原因,并在我的情况,我发现互联网速度较慢或没有互联网你的机器上(假设你是从MAC采取项目到Windows,可能不需要)。

虽然这样做构建它停止提取网址我注意到(HTTP:// .maven.org /)。 我不知道为什么机器人工作室再次做这些事情,但是这似乎是在我的情况下,唯一的问题。



Answer 8:

对于那些谁是升级到Android工作室v1.0和看没有发现错误摇篮DSL方法:“runProguard”,如果您使用的版本0.14.0或gradle这个插件的更高,你应该以“minifyEnabled取代“runProguard” “在你的build.gradle文件。 即

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}


Answer 9:

以下卡洛斯步骤后,我结束了删除

C:\用户\ MyPath.AndroidStudioPreview目录

然后重新导入它似乎完全解决我的问题的同时,和加速我AndroidStudio项目

希望它可以帮助任何人



Answer 10:

我有过Android Studio 0.8.9和论坛小时后终于为我工作的事情是手动下载摇篮(最新版本),然后进入到C:\用户\ .gradle \包装\ dists目录\ gradle这个-1.12-ALL \ \并更换与最近下载的存档的本地存档,并同时更换所提取的数据; 重新启动Android的工作室之后......他做了一些downloadings,并建立和各种东西,但它终于摸索..好运的人!



Answer 11:

这是与Android 1.0.2工作室为我工作:

文件 - >设置 - >摇篮设置“使用默认的摇篮包装。”

其他方法似乎并没有为我工作。



Answer 12:

我没有使用过Android Studio,但有同样的问题。 我不得不更新最新的Java JDK和JAVA_HOME设置为JDK。



Answer 13:

我有同样的错误。 我删除了Android SDK中经理的Android库并重新安装它。 有效。



Answer 14:

加载项目:>构建,执行,部署:>(检查)在parllel编译独立的模块。



Answer 15:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.

似乎相当明确的:您的操作系统无法找到足够的内存来启动一个新的Java进程,这是在这种情况下,摇篮建设者。 也许你没有足够的RAM,或者没有足够的交换,或者您有在同一时间运行太多其它消耗内存的进程。



Answer 16:

我有这个问题,当我开始我的项目,并没有足够的RAM的gradle。 我搜索了一个小时,包括上面给出的变型的解决方案,但我只是关闭我的浏览器并重新启动我的IDE。 有趣的是,如果你运行的浏览器或启动成功IDE和项目后,游戏仍然正常工作。 希望这个解决方案将是有用的人。 PS对不起我的英语知识(从学校它`)。



Answer 17:

所有你需要做的就是删除.gradle从用户,粘贴和Android Studio中验证更新,它会很好地工作!



Answer 18:

我总是移除%的用户%文件夹的文件夹.gradle并重新启动工作室。 当启动IDE它下载再次与所有依赖的gradle再次。 它的工作完美。



Answer 19:

今天我遇到了同样的错误,但是,我是使用的Android 1.0.2工作室。 我所做的TOT解决的问题是,我启动了一个项目以最小的SDK 4.4(API 19),所以,当我检查,我注意到,在版本文件 - > ProjectStructure->应用程序,我发现Android的5作为编译SDK版本。 我将它改回4.4。



Answer 20:

我与一起看到此错误:“错误:compileSdkVersion的android-21需要与JDK 7编译”

对我来说,发现该溶液在这里 ,在这里我不得不更新项目结构的JDK的位置。



文章来源: android studio 0.4.2: Gradle project sync failed error