【发布时间】:2017-09-10 07:14:00
【问题描述】:
信息:Gradle 任务 [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar] /Users/nomankhan/.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.0.2.aar/e49d52b74823e3f0f5498aa69c33e733/res/values/values.xml 错误:(1419, 5) 样式属性 '@android:attr/windowEnterAnimation' 未找到 错误:(1419, 5) 样式属性 '@android:attr/windowExitAnimation' 未找到 错误:/Clients/Shailesh/Evita/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:1935 样式属性“@android:attr/windowEnterAnimation”未找到 错误:链接引用失败 错误:java.util.concurrent.ExecutionException:com.android.builder.internal.aapt.AaptException:AAPT2 链接失败: 错误:com.android.builder.internal.aapt.AaptException:AAPT2 链接失败: 错误:任务 ':app:processDebugResources' 执行失败。
执行 aapt 失败 信息:BUILD FAILED in 5s 信息:7个错误 信息:0 个警告 信息:在控制台中查看完整的输出
style.xml
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<attr name="sc_corner_radius" format="dimension" />
<attr name="sc_border_width" format="dimension" />
<attr name="sc_tint_color" format="color" />
<attr name="sc_checked_text_color" format="color" />
【问题讨论】:
-
请编辑问题并分享
values.xml -
@PeterHaddad 我编辑了问题,请看一下
-
你在哪里使用
windowsExitanimation? -
我没有使用 windowsExitanimation,它来自 appcompat-v7-26.0.2.aar/e49d52b74823e3f0f5498aa69c33e733/res/values/values.xml
标签: android compiler-errors sdk