美文网首页
android studio Re-download depen

android studio Re-download depen

作者: 幻化万千戏红尘 | 来源:发表于2018-03-23 09:34 被阅读91次

    Possible causes for this unexpected error include:

    • Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)  

    Re-download dependencies and sync project (requires network)

  1. The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.  
  2. Stop Gradle build processes (requires restart)

  3. Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
  4. In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.  


    偶然重新打开项目就报上面的错误,根据百度一些答案没有解决,就照着旧项目改缺少的东西。。。

    把缺少gradle文件夹补上,再把项目各个地方的

    com.android.tools.build:gradle:2.3.2

    修改一致即可

    重新编译完事。。。这应该只是一种情况的解决方法,其它的引起的未知....

    相关文章

      网友评论

          本文标题:android studio Re-download depen

          本文链接:https://www.haomeiwen.com/subject/xjytcftx.html