当前位置:网站首页>Gradle sync failed: Uninitialized object exists on backward branch 142
Gradle sync failed: Uninitialized object exists on backward branch 142
2022-07-31 05:15:00 【为今天而努力】
android studio 命令行编译时提示错误
Gradle sync failed: Uninitialized object exists on backward branch 142
Exception Details:
Location:
com/android/build/gradle/internal/pipeline/VariantInfoImpl.<init>(Lcom/android/build/gradle/internal/scope/VariantScope;)V @200: goto
Reason:
Error exists in the bytecode
Bytecode:
原因:
IDE run引用 Android studio 内置的JDK user\AndroidStudio\jre
gradle build,引用的系统环境的JDK,即JAVA_HOME中定义的 C:\Program Files (x86)\Java\jdk1.8.0_20
解决办法:
网上建议调整AndroidStudio设置 File--> Project Structure -->SDK Location -->JDK Location
C:\Program Files\Android\Android Studio\jre
调整后不生效,转换了思路,
修改环境变量路径为 androidStudio 内置的 JDK,测试正常。
希望能帮到大家。有更好的思路,可以交流一下,万分感谢。
边栏推荐
- Understanding SSRF, this article is enough
- 数据库 | SQL增删改查基础语法
- Redis:简单实用
- 最新MySql安装教学,非常详细
- 阿里云中mysql数据库被攻击了,最终数据找回来了
- gin框架学习-GORM框架进阶之CRUD接口(数据库增删改查操作)
- Common JVM interview questions and answers
- Year-end summary - the years are quiet~
- How to distinguish big and small endian in C language
- 02 【el和data的两种写法 MVVM模型】
猜你喜欢
随机推荐
2021年京东数据分析工程师秋招笔试编程题
年终总结——岁月静好~
MySQL compressed package installation, fool teaching
What is GameFi?
leetcode-1833. 雪糕的最大数量(排序+贪心)
【JVM加载】---类加载机制
小白学爬虫——爬虫入门
Linux modify MySQL database password
Why is the redis single-threaded also so fast?
什么是EVM兼容链?
什么是 GameFi?
CMOS管原理,及其在推挽电路中的应用
局部变量成员变量、引用类型、this,static(第五天)
对于输出点是时间戳的渗透测试方法(以Oracle数据库为例)
MySql创建数据表
[Cloud native] Open source data analysis SPL easily copes with T+0
js中的函数
了解SSRF,这一篇就足够了
mysql启动报错The server quit without updating PID file几种解决办法
Regular Expression Basics