Failed to find Platform SDK with path: platforms;android-27 or in android-28 sometime.(what to do in that ?)

Neil's
Dec 19, 2020
Failed to find Platform SDK with path: platforms;android-28
BUILD ERROR

Step 1: Open Preferences or Settings in Android studio. Select Android SDK options and Install Android API 28 as selected below.

Install Android API 28
Install Android API 28

Step 2: There’s a problem with compileSdkVersion as you have to change it from ‘android-P’ to 28.

compileSdkVersion 28

And Build project. That’s it.

OR ,

To fully test your app’s compatibility with Android P and begin using new APIs, open your module-level build.gradle file and update the compileSdkVersion and targetSdkVersion as shown here:

put this code in android/build.gradle at the end 😊🚀

android {
compileSdkVersion 30

defaultConfig {
targetSdkVersion 30
}
...
}

And Build project. That’s it…….. ENJOY 😊

--

--