Failed to compile with Android "O" ASUS ASUS_Z010D (Android 6.0.1, API 23) (minSdk (API 25, preview)! = DeviceSdk (API 23))

I was just checking the new SDK

Android o preview, but I cannot compile with the downloaded one SDK

. it shows the following error

ASUS ASUS_Z010D (Android 6.0.1, API 23) (minSdk(API 25, O preview) != deviceSdk(API 23))

      

My Gradle

file code can be read as:

 compileSdkVersion 'android-O'
    buildToolsVersion '26.0.0-rc1'
    defaultConfig {
        applicationId "in.akash_deep.pre"
        minSdkVersion 14
        targetSdkVersion 'O'
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }

      

Thanks in advance.

+3


source to share


1 answer


If I'm not mistaken, Android O preview will only work on devices with the Android SDK. This is a limitation of the SDK preview.



Once the new SDK is released, you can run it.

+1


source







All Articles