Application will not run on new Android Studio 2.2 with gradle 2.14.1 with Instant Run enabled

I just installed the new Android Studio 2.2, and I am having problems creating my project:

Error:Execution failed for task ':app:processDebugAndroidTestResources'. java.io.FileNotFoundException: [path_to_project]/app/build/intermediates/symbols/androidTest/debug/R.txt (No such file or directory) 

I am using gradle version 2.14.1 (because this version of the IDE makes me use it).

If I turn off instant start, everything works fine, but it's a shame to suddenly lose this feature.

Any help?

EDIT:

I tried the following, but the error still occurs:

  • Clean up the project.
  • Re-imported the project as an external source in Android Studio.
+7
android android-studio gradle instant-run
source share
2 answers

Finally, I found the problem, I had one dependency added two times (one in the normal assembly plus the same in the test environment). I succeeded, and the instant start worked again.

+3
source share

Try opening a terminal in Android Studio and type gradlew -d assembleDebug , then clear the project and try again.

Btw, instant start always interrupts something here, I think it is still not very stable, if your error persists, try stopping the application and doing a clear run.

0
source share

All Articles