1
While running my project the following error appeared:
Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\10516125940\Documents\Estudo-Android\WhatsAppClone\app\build\intermediates\transforms\instantRunSlicer\debug\1
It started when I added: implementation 'com.google.firebase:firebase-auth:11.0.4' to the file build.gradle
(Module:app
).
I undid the steps to see if they would return to normal, but it did not occur.
I researched and found that it may be the reference that is wrong, but as I undone the steps and did not stop the mistakes, I do not know what is happening.
What might be going on?
Try to put the steps you used to put the reference and to take it. If possible put tbm an image of the project references. This will help the comrades understand the problem.
– Alexandre Cavaloti
My guess is that you have a file (or something else) called
1
in your project (see the end of the path that appears in the error). The Gradle script is trying to use this1
as a name for something in the code and that name is illegal in Java. I once had a problem like this once when I had pictures in the Assets folder called "1.png", "2.png" etc.– Pablo Almeida
In this question it has been suggested to add
android.enableD8=true
to the file Gradle.properties https://stackoverflow.com/questions/47137483/android-studio-3-0-dexarchivebuilderexception– Vitor Ramos
Disable Instant Run and try again
– Rosário Pereira Fernandes