android–Gradle sync中的块数据意外结束

android–Gradle sync中的块数据意外结束,第1张

概述参见英文答案 > Intellij Idea import gradle project error - “Cause: unexpected end of block data”                                    9个我想在Android Studio v0.5.4中启动一个项目,但是我一直收到以下错误:[ 130

参见英文答案 > Intellij Idea import gradle project error – “Cause: unexpected end of block data”                                    9个
我想在AndroID Studio v0.5.4中启动一个项目,但是我一直收到以下错误:

[ 130340]   WARN - nal.AbstractExternalSy@R_419_6563@Task - Cause: unexpected end of block data com.intellij.openAPI.externalSy@[email protected]@R_419_6563@Exception: Cause: unexpected end of block data    at org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.execute(GradleExecutionHelper.java:206)    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:116)    at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:64)    at com.intellij.openAPI.externalSy@[email protected]@[email protected](RemoteExternalSy@[email protected]:41)    at com.intellij.openAPI.externalSy@[email protected]@[email protected](RemoteExternalSy@[email protected]:37)    at com.intellij.openAPI.externalSy@[email protected]@[email protected](AbstractRemoteExternalSy@[email protected]:59)    at com.intellij.openAPI.externalSy@[email protected]@[email protected](RemoteExternalSy@[email protected]:37)    at com.intellij.openAPI.externalSy@[email protected]@[email protected](ExternalSy@[email protected]:49)    at com.intellij.openAPI.externalSy@[email protected]@[email protected](ExternalSy@[email protected]:48)    at com.intellij.openAPI.externalSy@[email protected]@[email protected](AbstractExternalSy@[email protected]:137)    at com.intellij.openAPI.externalSy@[email protected]@[email protected](AbstractExternalSy@[email protected]:123)    at com.intellij.openAPI.externalSy@[email protected]@[email protected](ExternalSy@[email protected]:467)    at com.intellij.openAPI.externalSy@[email protected]@[email protected](ExternalSy@[email protected]:546)    at com.intellij.openAPI.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:464)    at com.intellij.openAPI.progress.impl.ProgressManagerImpl.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.run(ProgressManagerImpl.java:373)    at com.intellij.openAPI.application.impl.ApplicationImpl.run(ApplicationImpl.java:419)    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)    at java.util.concurrent.FutureTask.run(FutureTask.java:262)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)    at java.lang.Thread.run(Thread.java:744)    at com.intellij.openAPI.application.impl.ApplicationImpl.run(ApplicationImpl.java:149)

可能相关的是,当我尝试访问build.gradle时出现此错误:

InvalIDVirtualfileAccessException: Accessing invalID virtual file: jar:///home/alex/.gradle/caches/modules-2/files-2.1/com.androID.tools.build/gradle/0.9.1/15633e70af52912588608f2675c85c4e11813c7/gradle-0.9.1-sources.jar!/com; original:27647; found:-: Accessing invalID virtual file: jar:///home/alex/.gradle/caches/modules-2/files-2.1/com.androID.tools.build/gradle/0.9.1/15633e70af52912588608f2675c85c4e11813c7/gradle-0.9.1-sources.jar!/com; original:27647; found:-

有想法该怎么解决这个吗?

其他信息:

使用gradle 1.10和gradle-wrapper.propertIEs确认了这一点.

最佳答案buildToolsversion设置为19,我安装了19.0.3.我通过改变这一行来解决它:

buildToolsversion = "19"

buildToolsversion = "19.0.3"

在build.gradle中. 总结

以上是内存溢出为你收集整理的android – Gradle sync中的块数据意外结束全部内容,希望文章能够帮你解决android – Gradle sync中的块数据意外结束所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/web/1140372.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-31
下一篇 2022-05-31

发表评论

登录后才能评论

评论列表(0条)

保存