material-components/material-components-android-codelabs

Failed to find target with hash string android-p install missing platforms

alexmanrique opened this issue ยท 6 comments

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

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.

Hi @Tibevilaqua , There's no "compileSDKVersion" on build.gradle file.

no_compile_sdk

@Tibevilaqua Ahh, It works. Thank you

Updated the code to use 28

Thanks @Tibevilaqua your comment above helped a lot.