信息:分级任务[: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'
错误:/客户端/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'的执行失败。
Failed to execute aapt Information:BUILD FAILED in 5s Information:7 errors Information:0 warnings Information:See complete output in console
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" />
最佳答案
android.enableAapt2=false
您应该将这一行代码添加到gradle.properties
关于android - Android Studio 3.0 Beta5编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46138217/