这是因为android studio工程中没有引入相应的android支持库
所以在build.gradle中的
dependencies {
//compile 添加相应的android支持库,不然theme.xml会报No resource found that matches the given name ‘@style/Theme.AppCompat.Light’.的错误
compile ‘com.android.support:appcompat-v7:22.2.0’
compile ‘com.android.support:support-v4:22.2.0’
}
Android Studio 报No resource found that matches the given name '@style/Theme.AppCompat.Light'.
最新推荐文章于 2021-04-30 16:04:30 发布