Android studio 3.6.1 build issue
Asked Answered
E

1

5

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.
Estate answered 2/3, 2020 at 13:40 Comment(6)
Have you tried Cleaning your project?Piezoelectricity
Yes I tried clean project, invalidate cache and restart.Estate
did you try to delete your build folder?Theoretician
yes I tried, but it is not working.Estate
The issue is resolved after updating the project-level build Gradle. classpath 'com.android.tools:r8:1.7.23-dev' in dependencies and maven { url 'storage.googleapis.com/r8-releases/raw' } in repositories.Estate
related here and hereHoberthobey
W
0

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'
Wearisome answered 4/3, 2020 at 13:14 Comment(2)
The issue is resolved after updating the project-level build Gradle.` classpath 'com.android.tools:r8:1.7.23-dev' ` in dependencies and maven { url 'storage.googleapis.com/r8-releases/raw' } in repositories.Estate
That doesn't work for me. I get the error "Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.android.tools:r8:1.7.23-dev"Wearisome

© 2022 - 2024 — McMap. All rights reserved.