Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style attribute '@android:attr/windowEnterAnimation' not found #51

Open
linq8261 opened this issue Jul 25, 2017 · 1 comment
Open

style attribute '@android:attr/windowEnterAnimation' not found #51

linq8261 opened this issue Jul 25, 2017 · 1 comment

Comments

@linq8261
Copy link

我项目相关的配置:

distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip

classpath 'com.android.tools.build:gradle:3.0.0-alpha6'

compile_sdk_version = 25
build_tools_version = "26.0.0"

报错信息:

style attribute '@android:attr/windowEnterAnimation' not found
style attribute '@android:attr/windowExitAnimation' not found

相关代码:

<style name="FadeInPopWin">
    <item name="android:backgroundDimEnabled">true</item>
    <item name="@android:windowEnterAnimation">@anim/pop_win_content_fade_in</item>
    <item name="@android:windowExitAnimation">@anim/pop_win_content_fade_out</item>
</style>
@pawarlalit29
Copy link

pawarlalit29 commented Mar 9, 2018

Solution:
Removing the "@" at the start of the item name.
<item name="@android:windowEnterAnimation">@anim/anim_toast_show</item> <item name="@android:windowExitAnimation">@anim/anim_toast_hide</item>
to:
<item name="android:windowEnterAnimation">@anim/anim_toast_show</item> <item name="android:windowExitAnimation">@anim/anim_toast_hide</item>
from reference:
https://stackoverflow.com/questions/45952607/error-style-attribute-androidattr-windowexitanimation-not-found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants