Error related to resources_ap after upgrading to Android Studio 3.4

Issue should be fixed in Android Studio 3.4.2.


EDIT: Here is my old answer on how to fix it in Android Studio 3.4.0 and 3.4.1:

Using Gradle 5.4 instead of 5.1.1 helped me with this error.

Update gradle-wrapper.properties file with: distributionUrl=https\://services.gradle.org/distributions/gradle-5.4-all.zip

Please note I haven't tested older Gradle versions, so it's possible even (for example) 5.2 version will work. You can see all Gradle releases here - https://gradle.org/releases/


Switching off Instant Run as a workaround (File/Settings/Instant Run) seems to eliminate the problem.

According to OP it is possible to turn Instant Run back on without the problem recurring for some projects.


There is no need to turn off Instant Run.
Just delete the '.gradle' directory in the project and build directory inside the 'app' module.
Perform Clean Project and Rebuild Project.
This will solve the issue.


This is caused by "instant run" feature in android studio 3.4 , you can disable it by:

Open the Settings or Preferences dialog. Navigate to Build, Execution, Deployment > Instant Run. Uncheck the box next to Enable Instant Run

Enjoy...!


Go to your project folder and move everything from ...\app\build\ to some other folder outside project. (to clear build folder with back up) In my case clearing the build folder solved the probem, till then i was disableing the instant Run option for every new install.