Couldn't resolve resource @style/Widget.Holo.Light.ActionMode.Inverse

前端 未结 3 1437
臣服心动
臣服心动 2021-02-20 02:16

I\'m creating an Android app in Android Studio. When I open the layout editor, I see that gray \"popup window\" on top of the layout, which says that it

3条回答
  •  我在风中等你
    2021-02-20 02:54

    Make you project API Level newer.
    For me,the problem occured when my build.gradle content like this:

    compileSdkVersion 16
    buildToolsVersion "23.0.2"
    
    defaultConfig {
        applicationId "com.xiaoguang.xx"
        minSdkVersion 16
        targetSdkVersion 16
        versionCode 1
        versionName "1.0"
    }
    

    After i download the sdk 19 and change build.gradle, the problem was fixed.

    compileSdkVersion 19
    buildToolsVersion "19.1.0"
    
    defaultConfig {
        applicationId "com.xiaoguang.xx"
        minSdkVersion 19
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    

    change preview'api

提交回复
热议问题