Gradle sync失败:找不到kxml2.jar

时间:2017-05-30 07:03:21

标签: javascript android gradle compiler-errors kxml2

我的Gradle日志中遇到错误。它阻止我的Android Studio App部署/执行Gradle同步。

完整错误消息:

2017-05-30 09:39:19,203 [ 145127]   WARN - ect.sync.idea.ProjectSetUpTask -  
2017-05-30 09:39:19,203 [ 145127]   INFO - ect.sync.idea.ProjectSetUpTask - Could not find kxml2.jar (net.sf.kxml:kxml2:2.3.0).
Searched in the following locations:
    file:/C:/Program Files/Android/Android Studio/gradle/m2repository/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar

Consult IDE log for more details (Help | Show Log) 
2017-05-30 09:39:19,203 [ 145127]   INFO - e.project.sync.GradleSyncState - Sync with Gradle for project 'ShishaTobacco' failed: Could not find kxml2.jar (net.sf.kxml:kxml2:2.3.0).
Searched in the following locations:
    file:/C:/Program Files/Android/Android Studio/gradle/m2repository/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar

Consult IDE log for more details (Help | Show Log) 
2017-05-30 09:39:19,252 [ 145176]   INFO -       #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s. 
2017-05-30 09:39:19,253 [ 145177]   INFO -       #com.jetbrains.cidr.lang - Loading symbols finished in 0 s. 
2017-05-30 09:39:19,255 [ 145179]   INFO -       #com.jetbrains.cidr.lang - Building symbols finished in 0 s. 
2017-05-30 09:39:19,255 [ 145179]   INFO -       #com.jetbrains.cidr.lang - Saving symbols finished in 0 s. 

在此目录中,“C:/ Program Files / Android / Android Studio / gradle / m2repository / net / sf / kxml / kxml2”确实没有名为kxml2.jar的文件。

粗略地创建没有内容的文件,预计不会解决问题。

谷歌根本不帮助我,所以我需要你的帮助。

利亚

编辑:

这是来自idea.log的完整错误消息:

li

编辑2:

我刚刚重新安装Android Studio,现在一切正常。

0 个答案:

没有答案