Failed to find target with hash string android-p install missing platforms
alexmanrique opened this issue ยท 6 comments
alexmanrique commented
Any idea why I get this error in android studio when gradle build runs with your repository?https://stackoverflow.com/questions/50826588/failed-to-find-target-with-hash-string-android-p-install-missing-platforms-a
thanks
Tibevilaqua commented
Yep, you're trying to find a SDK that corresponds to the version "android-p"
have a look at your build.gradle file:
android {
compileSDKVersion 'android-p'
..........
}
change it to
android {
compileSDKVersion 28 (for example)
..........
}
that should do it.
manchoydotid commented
Hi @Tibevilaqua , There's no "compileSDKVersion" on build.gradle file.
Tibevilaqua commented
manchoydotid commented
@Tibevilaqua Ahh, It works. Thank you
cketcham commented
Updated the code to use 28
riturajgc commented
Thanks @Tibevilaqua your comment above helped a lot.