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

报错

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>
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

猎羽

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值