报错
error: style attribute ‘@android:attr/windowEnterAnimation’ not found.
原因
提示我们找不到@android:attr/windowEnterAnimation,因为已经不支持@开头使用android自带的属性,我们只要把@符号删掉就可以了。
注意:网上一些解决办法是直接把aapt2给关掉,这种掩耳盗铃式的处理办法是有隐患的!类似于,你在工程里遇到空指针异常,直接try-catch而且不处理,最终的确不会因此而崩溃,但是问题解决了?!
当你想在android studio 3.0中使用一些JRebel for Android等插件时,会导致无法使用,到处报错。本人之前就一路修复问题最终还是无法使用,最终发现是aapt的问题。
解决办法
全局搜索@android:attr/windowEnterAnimation找到相应的地方,把@去除
修改前:
<style name="remnote_play_time_animation">
<item name="@android:windowEnterAnimation">@anim/remote_play_popup_show</item>
<item name="@android:windowExitAnimation">@anim/remote_play_popup_hide</item>
</style>
修改后:
<style name="remnote_play_time_animation">
<item name="android:windowEnterAnimation">@anim/remote_play_popup_show</item>
<item name="android:windowExitAnimation">@anim/remote_play_popup_hide</item>
</style>