Failed to find Platform SDK with path: platforms;android-P

前端 未结 4 855
孤城傲影
孤城傲影 2021-01-11 11:24

Error:FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project \':app\'.

Failed to find P

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-11 11:30

    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
        }
        ...
    }
    

    Set Up the Android P SDK

提交回复
热议问题