The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
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)}
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorActionbarFrom</item> <item name="colorAccent">@color/colorAccent</item> <item name="android:windowIsTranslucent">true</item> <item name="android:windowBackground">@android:color/transparent</item> <item name="@android:windowNoTitle">true</item> <item name="windowNoTitle">true</item> </style>看到没,明显错误
<item name="@android:windowNoTitle">true</item>
改成
<item name="windowNoTitle">true</item>
解决!
2、error: style attribute '@android:attr/windowEnterAnimation' not found.
<item name="@android:windowEnterAnimation">@anim/fade_in</item> <item name="@android:windowExitAnimation">@anim/fade_out</item>
改成
<item name="android:windowEnterAnimation">@anim/fade_in</item> <item name="android:windowExitAnimation">@anim/fade_out</item>解决