1
votes

I am receiving this error when updating targetSDKVersion to android oreo

Error:Failed to find target with hash string 'android-O' in: C:\Users\admin\AppData\Local\Android\Sdk

Install missing platform(s) and sync project

when I am clicking on "Install missing platform(s) and sync project", it is showing a popup with this message.

enter image description here

I updated android SDK but it keep showing this popup.

Needed solution for this.

1

1 Answers

0
votes

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:

android {
    compileSdkVersion 28

    defaultConfig {
        targetSdkVersion 28
    }
    ...
}

Read Set Up the Android P SDK.