Exception while performing iteration backups: Source

I am working on an Android project. I connected my phone to Android Studio to test the application. After the second boot, Gradle Build failed to complete this error:

Error: execution completed for task ': app: buildInfoDebugLoader'.

Exception when performing iteration backup: Source / home / ziyaddin / AndroidStudioProjects / Test / app / build / intermediates / builds / debug / 19181584762318 / classes.dex and destination / home / ziyaddin / AndroidStudioProjects / Test / app / build / intermediate / builds /debug/19181584762318/classes.dex must be different

What could be the reason for this? How to solve this problem?

+63
android android-gradle build.gradle
Apr 09 '16 at 10:39 on
source share
7 answers

I solved this problem on the Build -> Rebuild Project , and then Run again.

I also think that the new Run -> Clean and Rerun added menu should also fix this problem.
[EDIT:] Clean and Rerun is uninstalled in Android Studio 2.3

+176
Apr 11 '16 at 6:37
source share

I also faced the same problem, it was solved by restoring the project.

 Build-> Rebuild Project 

and then

 Run 

I think this only happens in the new Android Studio update from 2.0.

+9
Apr 27 '16 at 4:43 on
source share

I have this problem and resolved by removing the entire directory (or only one) from the ../app/build/intermediates/builds/debug/ directory.

in this example: / home / ziyaddin / AndroidStudioProjects / Test / app / build / intermediates / builds / debug / 19181584762318

+9
May 30 '16 at 13:49
source share

I solved this by invalidating the cache, rebuilding the project, and then running it, it worked fine.

+6
Apr 25 '16 at 8:00
source share

Actions:

  • select build
  • Select the Rebuild project
  • start a project
+3
Aug 15 '16 at 6:35
source share

I had this problem and I decided to disconnect my phone and run it in the emulator. It was good, and subsequent tests on my phone were successful. While doing this, I also commented on my savedInstanceState Bundle file, which may have been a contributing factor. I think this is a potentially internal failure with Android Studio.

Actions:

  • Comment from Bundles / Saved States
  • Only run the emulator
  • Please try again with your phone.
  • Add back Bundles / Saves state 5) Try to start the device again, everything should be fine.
+2
Apr 10 '16 at 12:02 on
source share

The reconstruction of the project works fine in Android Studio 2.2.2

0
Dec 07 '16 at 18:43
source share



All Articles