No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse

来源:互联网 发布:大数据并不意味着数据 编辑:程序博客网 时间:2024/05/16 10:25

最近在AS项目里添加Vitamio时,报标题错误,网上都说升到23就不会了,我是因为Vitamio不支持23,需要从23改到22,原因点这里,修改方法:

apply plugin: 'com.android.application'android {    compileSdkVersion 22    buildToolsVersion '22.0.1'    defaultConfig {        applicationId "com.xx.xxx"        minSdkVersion 15        targetSdkVersion 22        versionCode 2        versionName "1.0"    }    buildTypes {        release {            minifyEnabled false            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'        }    }    sourceSets {        main {//            jniLibs.srcDirs = ['libs']            aidl.srcDirs = ['src/main/java']        }    }}dependencies {    compile fileTree(dir: 'libs', include: ['*.jar'])    testCompile 'junit:junit:4.12'    compile project(':library')    compile project(':vitamio')    compile 'com.android.support:appcompat-v7:22.2.1'    compile 'com.android.support:design:22.2.1'    compile 'com.jakewharton:butterknife:7.0.1'}

坑:注意了 ,将下面两个module都改成22
compile project(‘:library’)
compile project(‘:vitamio’)

0 0
原创粉丝点击