Execution failed for task ': app: processDebugResources'. failed to execute aapt

In Android Studio, I have this error when I update the Android SDK Tools to version 25:

enter image description here

I tried to change the SDK version in gradle build to 21 to run my application, but I have this error. In fact, I do not understand why this is happening. This is my build.gradle file:

enter image description here

Many thanks for your help!

+5
source share
3 answers

Update your build tools and the error will be fixed automatically.

0
source

I have the same problem, before I see this post, I solved it by leaving Android studio and executing it with administrator privileges

0
source

I got this after adding google maps. It turned out that this is the missing key link

 Error:(45) resource string/google_maps_key (aka com.your.package:string/google_maps_key) not found. Error:(45) error: resource string/google_maps_key (aka com.your.package:string/google_maps_key) not found. android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml 

In the manifest. What needed to be added to build.gradle script as showin in https://developers.google.com/maps/documentation/android-api/map-with-marker . After adding the following to build.gradle

  resValue "string", "google_maps_key", (project.findProperty("GOOGLE_MAPS_API_KEY") ?: "") 

The aapt error aapt disappeared.

0
source

Source: https://habr.com/ru/post/1261466/


All Articles