当前位置:网站首页>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,测试正常。
希望能帮到大家。有更好的思路,可以交流一下,万分感谢。
边栏推荐
- gin框架学习-Casbin入门指南(ACL、RBAC、域内RBAC模型)
- C语言 | 获取字符串里逗号间隔的内容
- Several solutions for mysql startup error The server quit without updating PID file
- Fragmented NFT (Fractional NFT)
- The MySQL database in Alibaba Cloud was attacked, and the data was finally recovered
- 阿里云中mysql数据库被攻击了,最终数据找回来了
- 数据库 | SQL增删改查基础语法
- 代码执行漏洞
- MySQL分页查询的5种方法
- 阿里一面,说说你知道消息中间件的应用场景有哪些?
猜你喜欢
【云原生】SQL(及存储过程)跑得太慢怎么办?
阿里云中mysql数据库被攻击了,最终数据找回来了
DeFi 项目中的治理Token
feign调用不通问题,JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
Three-party login using wallet Metamask based on web3.0
Year-end summary - the years are quiet~
03 【数据代理 事件处理】
MySql创建数据表
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
【云原生】原来2020.0.X版本开始的OpenFeign底层不再使用Ribbon了
随机推荐
12 【网页布局总结 元素的显示与隐藏】
(Crypto essential dry goods) Detailed analysis of the current NFT trading markets
2021面经-拥抱变化
js中的break与continue退出
npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
通信原理——纠错编码 | 汉明码(海明码)手算详解
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
GUCCI、LV等奢侈品巨头如何布局元宇宙的,其他品牌应该跟上吗?
【uiautomation】微信好友列表获取(存储到txt中)
js中的this指向与原型对象
10 【高度塌陷与BFC】
C语言 | 获取字符串里逗号间隔的内容
vulhub靶场学习日记xxe-lab
What is GameFi?
Redis:安装使用
DeFi Token in the project management
PHP中abstract(抽象)、final(最终)和static(静态)原理与用法
leetcode-每日一题1252. 奇数值单元格的数目(模拟优化)
MySQL面试题大全(陆续更新)
About integrating superset into your own project