当前位置:   article > 正文

Unsupported Java. Your build is currently configured to use Java 1.8.0_192 and Gradle 5.6.4.

unsupported java. your build is currently configured to use java 1.8.0_181 a

打开android的一个项目结果打不了报错

Unsupported Java. 

Your build is currently configured to use Java 1.8.0_192 and Gradle 5.6.4.

Possible solution:

 - Open Gradle wrapper settings, change `distributionUrl` property to use compatible Gradle version and reload the project

错误尝试一: 刚开始真的看日志以为是不是配置的jdk版本、gradle版本不对

疯狂更换但是无用!!!!

尝试二:由于之前报错显示有远程jar包Could not resolve

于是在Android Studio配置多个代码仓库repositories

  1. repositories {
  2. mavenCentral()
  3. maven { url "https://jitpack.io" }
  4. maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
  5. maven { url 'http://maven.oschina.net/content/groups/public/' }
  6. maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
  7. maven { url "http://maven.springframework.org/release" }
  8. maven { url "http://maven.restlet.org" }
  9. maven { url "http://mirrors.ibiblio.org/maven2" }
  10. maven {
  11. url "http://repo.baichuan-android.taobao.com/content/groups/BaichuanRepositories/"
  12. }
  13. maven { url 'https://maven.fabric.io/public' }
  14. jcenter()
  15. google()
  16. }

结果还是不行!,于是找其他项目的仓库地址继续添加

 

结果成功了!!!!!!
 

总结:此类错误的原因大概率就是gradle仓库地址配置有误导致的 。记住在报错中任何远程jar包Could not resolve就大概率就是这个问题

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/226460
推荐阅读
相关标签
  

闽ICP备14008679号