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!

7
  • 1
    Paste the content of your project level and app level gradle files Commented Dec 18, 2016 at 18:15
  • Fixed image positioning Commented Dec 21, 2016 at 8:06
  • i pasted my gradle file it's in the picture, and my peject level API is 25 it's that enough Commented Dec 21, 2016 at 13:16
  • Maybe this response can fix this issue stackoverflow.com/a/31203627/2666042 Commented Mar 30, 2017 at 20:32
  • Hey , @zakaria Did you fixed that ? How? Commented Oct 4, 2017 at 7:37

3 Answers 3

0

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

Sign up to request clarification or add additional context in comments.

1 Comment

Do you mean upgrade Gradle? Or the SDK?
0

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

Comments

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.