找不到样式属性“@android:attr/windowEnterAnimation" [英] style attribute '@android:attr/windowEnterAnimation' not found

查看:42
本文介绍了找不到样式属性“@android:attr/windowEnterAnimation"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打开了 android 项目,出现这个错误,我该如何解决?

I opened the android project, i got this error, how do i fix it?

信息:Gradle 任务 [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar]警告:android.dexOptions.incremental 属性已被弃用,它对构建过程没有影响./Users/Ren/Desktop/17live/app/src/main/res/values/styles.xml错误:(515, 5) 样式属性 '@android:attr/windowEnterAnimation' 未找到错误:(515, 5) 样式属性 '@android:attr/windowExitAnimation' 未找到错误:(577, 5) 样式属性 '@android:attr/windowEnterAnimation' 未找到错误:(577, 5) 样式属性 '@android:attr/windowExitAnimation' 未找到错误:/Users/Ren/Desktop/17live/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3534 样式属性 '@android:attr/windowEnterAnimation' 未找到错误:/Users/Ren/Desktop/17live/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3796 样式属性 '@android:attr/windowEnterAnimation' 未找到错误:链接引用失败错误:java.util.concurrent.ExecutionException:com.android.builder.internal.aapt.AaptException:AAPT2 链接失败:错误:com.android.builder.internal.aapt.AaptException:AAPT2 链接失败:错误:任务:app:processDebugResources"执行失败.

Information:Gradle tasks [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar] Warning:The android.dexOptions.incremental property is deprecated and it has no effect on the build process. /Users/Ren/Desktop/17live/app/src/main/res/values/styles.xml Error:(515, 5) style attribute '@android:attr/windowEnterAnimation' not found Error:(515, 5) style attribute '@android:attr/windowExitAnimation' not found Error:(577, 5) style attribute '@android:attr/windowEnterAnimation' not found Error:(577, 5) style attribute '@android:attr/windowExitAnimation' not found Error:/Users/Ren/Desktop/17live/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3534 style attribute '@android:attr/windowEnterAnimation' not found Error:/Users/Ren/Desktop/17live/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:3796 style attribute '@android:attr/windowEnterAnimation' not found Error:failed linking references Error:java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException: AAPT2 link failed: Error:com.android.builder.internal.aapt.AaptException: AAPT2 link failed: Error:Execution failed for task ':app:processDebugResources'.

执行 aapt 失败信息:BUILD 在 13 秒内失败信息:10个错误信息:1个警告信息:在控制台查看完整输出

Failed to execute aapt Information:BUILD FAILED in 13s Information:10 errors Information:1 warning Information:See complete output in console

推荐答案

转到 res/style.xml,您可以在 android 之前删除 @,如果有任何 .xml,请删除 .xml 并重建您的项目.你的风格应该看起来像这样

go to res/style.xml and you can remove @ before android and if there is any .xml remove the .xml and rebuilt your project. Your style should look something like this something like this

<item name="android:windowEnterAnimation">@anim/slide_down_dialog</item>

这篇关于找不到样式属性“@android:attr/windowEnterAnimation"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆