5

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

enter image description here

I tried to modify SDK version in gradle build to 21 to execute my app but I have this error. Really I don't why this happens. This is my build.gradle file:

enter image description here

Thanks a lot for your help!

Petter Hesselberg
  • 5,062
  • 2
  • 24
  • 42
zakaria
  • 365
  • 2
  • 5
  • 12

3 Answers3

0

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

Dat Nguyen
  • 1,626
  • 22
  • 25
Milon
  • 1
0

I have same issue before seeing this post i solved it by exiting android studio and running it with administrative privilege

Samuel Moshie
  • 570
  • 1
  • 5
  • 20
0

I was getting this after adding google maps. It turned out being a missing key reference

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. Which needed to be added in the 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 went away.

frmdstryr
  • 20,142
  • 3
  • 38
  • 32