Android studio 3.6.1 build issue

拥有回忆 提交于 2020-05-27 04:25:48

问题


I have just updated android studio 3.6.1. after this update, I updated all plugins. Now Gradle syncing is failed. Please check the below errors.

Caused by: org.gradle.tooling.BuildException: Failed to process C:\user\app\build\intermediates\compile_and_runtime_not_namespaced_r_class_jar\debug\R.jar
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\app\build\intermediates\javac\debug\classes
Error while dexing.

回答1:


I also got a similar problem for a specific project after upgrading to android studio 3.6.1. I tried a couple of things but what worked for me was removing the following line top-level build file

classpath 'com.android.tools:r8:1.5.70'


来源:https://stackoverflow.com/questions/60490068/android-studio-3-6-1-build-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!