android studio 3.1.1 相关问题

The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.

It will be removed at the end of 2018

在低版本升级到新版本,提示以前的android.enableAapt2  不可用,于是在 gradle.properties  去掉就可以,但是去掉了 肯定会报错,报以前的AAPT2 提示的错误,以前的解决是 解决表面而已



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

Message{kind=ERROR, text=error: style attribute '@android:attr/windowNoTitle' not found., sources=[/Users/H/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/1cabb3d49c29cfe574e0542af876db82/res/values/values.xml:390:5-397:13], original message=, tool name=Optional.of(AAPT)}

看到没,明显错误 
name="@android:windowNoTitle">true

改成 

 name="windowNoTitle">true 

解决!

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

name="@android:windowEnterAnimation">@anim/fade_in
name="@android:windowExitAnimation">@anim/fade_out

改成

name="android:windowEnterAnimation">@anim/fade_in
name="android:windowExitAnimation">@anim/fade_out
解决




你可能感兴趣的:(android)