error: style attribute '@android:attr/windowEnterAnimation' not found.

1.androidStudio升级到3.0之后,编译报错“ 

error: style attribute '@android:attr/windowEnterAnimation' not found.

原因:在gradle 3.0.0中AAPT2是默认打开的

解决方法:在Project/gradle.properties中添加android.enableAapt2=false

2.然后可能会出现Annotation processors must be explicitly declared now这个问题

还是3.0的问题

解决方法:在project/app/build.gradle的android{defaultConfig{}}中添加:

javaCompileOptions {

annotationProcessorOptions {

includeCompileClasspathtrue

}


猜你喜欢

转载自blog.csdn.net/qq_31164261/article/details/79040143