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_192 and Gradle 5.6.4.。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

打开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

unsupported java. your build is currently configured to use java 1.8.0_181 a,java,开发语言,Android studio

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

unsupported java. your build is currently configured to use java 1.8.0_181 a,java,开发语言,Android studio

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

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

unsupported java. your build is currently configured to use java 1.8.0_181 a,java,开发语言,Android studio

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

repositories {
    mavenCentral()
    maven { url "https://jitpack.io" }
    maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
    maven { url 'http://maven.oschina.net/content/groups/public/' } 
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } 
    maven { url "http://maven.springframework.org/release" } 
    maven { url "http://maven.restlet.org" } 
    maven { url "http://mirrors.ibiblio.org/maven2" }
    maven {
        url "http://repo.baichuan-android.taobao.com/content/groups/BaichuanRepositories/"
    }
    maven { url 'https://maven.fabric.io/public' }
    jcenter()
    google()
}

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

unsupported java. your build is currently configured to use java 1.8.0_181 a,java,开发语言,Android studio 

结果成功了!!!!!!
 文章来源地址https://www.toymoban.com/news/detail-839726.html

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

到了这里,关于Unsupported Java. Your build is currently configured to use Java 1.8.0_192 and Gradle 5.6.4.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包