当前位置:网站首页>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,测试正常。
希望能帮到大家。有更好的思路,可以交流一下,万分感谢。
边栏推荐
猜你喜欢

Linux中mysql密码修改方法(亲测可用)

leetcode-1833. 雪糕的最大数量(排序+贪心)
![[Cloud native] Ribbon is no longer used at the bottom layer of OpenFeign starting from the 2020.0.X version](/img/7e/1d27e3f1856ab8c6cbfc5221c717bb.png)
[Cloud native] Ribbon is no longer used at the bottom layer of OpenFeign starting from the 2020.0.X version

gin框架学习-Gin框架和Gorm框架搭建一个简单的API微服务

leetcode-每日一题735. 行星碰撞(栈模拟)
![[swagger close] The production environment closes the swagger method](/img/43/17be22626ba152b33beaf03f92fbec.png)
[swagger close] The production environment closes the swagger method

【云原生】开源数据分析 SPL 轻松应对 T+0

【云原生】原来2020.0.X版本开始的OpenFeign底层不再使用Ribbon了
![[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?](/img/40/be3a30743ee2bc6c82f82ab852f29c.png)
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?

安装Multisim出现 No software will be installed or removed解决方法
随机推荐
计网 Packet Tracer仿真 | 简单易懂集线器和交换机对比(理论+仿真)
SQL注入中数据库的判断
vulhub靶场学习日记SickOs1.2
【swagger关闭】生产环境关闭swagger方法
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
【Elastic-Job源码分析】——作业监听器
The server time zone value ‘й‘ is unrecognized or represents more than one time zone
leetcode-2321. 拼接数组的最大分数(差分+枚举)
MySQL compressed package installation, fool teaching
leetcode-每日一题745. 前缀和后缀搜索(哈希和字典树)
【uiautomation】微信好友列表获取(存储到txt中)
this指向问题
NFTs: The Heart of Digital Ownership
mysql password modification method in Linux (pro-test available)
npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
leetcode-每日一题731. 我的日程安排表 II
First acquaintance with Flask
数据库 | SQL查询进阶语法
leetcode-每日一题873. 最长的斐波那契子序列的长度(哈希和二分)
通信原理——纠错编码 | 汉明码(海明码)手算详解