美文网首页
android 自定义viewR.styleable找不到或者是

android 自定义viewR.styleable找不到或者是

作者: addapp | 来源:发表于2017-02-16 15:38 被阅读267次

android 自定义viewR.styleable找不到或者是报错!

先查看当前module是否有如下内容   如果没有就加上 问题就可能解决,如果还没有解决请查看是否导入了错误的R类。

android{

compileSdkVersion23

buildToolsVersion"24.0.2"

defaultConfig{

minSdkVersion14

targetSdkVersion23

versionCode1

versionName"1.0"

}

buildTypes{

release{

minifyEnabledfalse

proguardFilesgetDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'

}

}

}

相关文章

网友评论

      本文标题:android 自定义viewR.styleable找不到或者是

      本文链接:https://www.haomeiwen.com/subject/xzkhwttx.html