Error:Error: Expected resource of type id [ResourceType]打包apk是提示错误
解决办法:
android { compileSdkVersion 19 buildToolsVersion "23.0.3" defaultConfig { minSdkVersion 7 targetSdkVersion 23 compileOptions { sourceCompatibility JavaVersion.VERSION_1_5 targetCompatibility JavaVersion.VERSION_1_5 } }
在build中添加
lintOptions { disable "ResourceType" }
android { compileSdkVersion 19 buildToolsVersion "23.0.3" defaultConfig { minSdkVersion 7 targetSdkVersion 23 compileOptions { sourceCompatibility JavaVersion.VERSION_1_5 targetCompatibility JavaVersion.VERSION_1_5 } } lintOptions { disable "ResourceType" }