我得到了这个错误:
找不到样式属性'android:attr/metaButtonBarStyle‘
我在刚刚安装的Android Studio版本上的一个新的空项目中得到了它。
我试着重建项目,在生成的values.xml文件中添加metaButtonBarStyle属性,用android.enableAapt2=false禁用gradle-wrapper.properties上的AAPT2,我试着卸载插件和Android Studio,从一个带有空项目的Android Studio的刚安装版本开始,我仍然收到这个错误。
以下是我的依赖项:
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.1'
implementation 'com.android.support:design:27.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
有人能帮我这个忙吗?
发布于 2018-06-13 04:00:06
降级您正在使用的SDK可能会有所帮助,除非您需要一个特定的SDK。
我知道当我使用Android的SDK和Unity游戏引擎时,我不得不去删除/重命名一个文件夹,以触发Unity下载这些文件的版本,我不知道Android Studio中是否有类似的自动修复功能,但如果有的话,你可能想要找到metaButtonBarStyle应该在的地方,并重命名父文件夹。
https://stackoverflow.com/questions/50822533
复制相似问题