brucetoo / PickView

Date and Province WheelView like IOS
1.1k stars 265 forks source link

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

Open linq8261 opened 7 years ago

linq8261 commented 7 years ago

我项目相关的配置:

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 commented 6 years ago

Solution: Removing the "@" at the start of the item name. `

@anim/anim_toast_show @anim/anim_toast_hide

to:

@anim/anim_toast_show @anim/anim_toast_hide

` from reference: https://stackoverflow.com/questions/45952607/error-style-attribute-androidattr-windowexitanimation-not-found