Android Studio 3.6.1构建问题 [英] Android studio 3.6.1 build issue

查看:70
本文介绍了Android Studio 3.6.1构建问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚更新了Android Studio 3.6.1 .在此更新之后,我更新了所有插件.现在,Gradle同步失败.请检查以下错误.

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.

推荐答案

在升级到android studio 3.6.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'

这篇关于Android Studio 3.6.1构建问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆