我在 Gradle 日志中遇到错误。它阻止我的 Android Studio 应用程序部署/执行 Gradle 同步。
完整的错误信息:
Gradle sync 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)
在这个目录“C:/Program Files/Android/Android Studio/gradle/m2repository/net/sf/kxml/kxml2”中确实没有名为kxml2.jar的文件。
马虎地创建没有内容的文件,没有解决问题,预期。
谷歌根本没有帮助我,所以我需要你的帮助。
埃利亚斯
编辑:
这是来自 idea.log 的完整错误消息:
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.
编辑2:
我刚刚重新安装了 Android Studio,现在一切正常。