android - Android Studio 3.0 Beta5编译错误

标签 android compiler-errors sdk

信息:分级任务[: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/

相关文章:

使用相机时Android App无误关闭

ios - 在后台和模拟器中的位置

android - 3rd-party Gradle 插件可能是原因

C++调用类的模板函数作为模板参数

c++ - 初始化成员函数字段

php - 自定义 PHP 扩展

javascript - Rally 2.1 SDK - 按迭代过滤用户故事

ios - NSThread gtm_performBlock 错误

java - 在 Android 中通过蓝牙接收数据

java - 将实时视频流式传输到 MediaPLayer