Gradle sync failed: Uninitialized object exists on backward branch 142
2023-09-11 14:18:49 时间
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,测试正常。
希望能帮到大家。有更好的思路,可以交流一下,万分感谢。
相关文章
- Git SSH public key authentication failed with git on Azure DevOps
- Git rename from index.lock to index failed
- 报错:HBase regionserver.HRegionServer: reportForDuty failed; sleeping and then retrying.
- java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start com
- Module build failed: TypeError: Cannot read property ‘match‘ of undefined at Object.解决
- Linux有问必答:如何修复“X11 forwarding request failed on channel 0”错误
- openEuler 使用密钥登录SSH以及遇到的奇怪问题(一直提示Failed publickey for root,结果最后重启好了)
- Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
- SpringBoot启动报错:org.apache.catalina.LifecycleException: Protocol handler start failed
- nginx: [emerg] bind() to 0.0.0.0:443 failed(98:Address already in use)解决方法
- web开发 Tomcat启动报错 5种解决方法 Server Tomcat v8.0 Server at localhost failed to start . 五种综合解决方法
- 解决 Successfully created project '' on GitHub, but initial push failed: Could not read from remote re
- 异常 Failed to bind NettyServer on /10.133.7.216:29105, cause: Failed to bind to: /0.0.0.0:29105
- vscode cmake 插件 Acquisition Failed: Installation failed: Error: .NET installation timed out
- zookeeper error: Starting zookeeper ... FAILED TO START
- Tomcat启动报错org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]”
- Mac OSX Yosemite 10.10 brew 错误:mktemp: mkdtemp failed on /tmp/git-LIPo: No such file or directory
- nios工程,在eclipse工程中报错recipe for target ‘test.elf‘ failed
- html2canvas 报错:Failed to execute ‘toDataURL‘ on ‘HTMLCanvasElement : Tainted canvases may not be ...
- (xTaskNotify)- assert failed! 错误的修复
- publishing failed with multiple errors
- 【Android Studio报错】:Failed to read key AndroidDebugKey from store “C:Users13181.androiddebug.keys
- MySQL数据库断电修复(Database page corruption on disk or a failed)
- FAILED:HiveAccessContorlException Permission denied: user[hive] does not havar[USER] privilege on
- maven打包时出现 Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-install) on project……
- FAILED:HiveAccessContorlException Permission denied: user[hive] does not havar[USER] privilege on