2017-09-10 128 views
-1

信息:Gradle tasks [: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.b uilder.internal.aapt.AaptException:AAPT2鏈接失敗: 錯誤:com.android.builder.internal.aapt.AaptException:AAPT2鏈接失敗: 錯誤:執行任務':app:processDebugResources'失敗。Android Studio 3.0 Beta5編譯錯誤

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" /> 

+0

請編輯的問題和s哈里'values.xml' –

+0

@PeterHaddad我編輯的問題,請看看 –

+1

你在哪裏使用'windowsExitanimation'? –

回答

-2
android.enableAapt2=false 

應將此行代碼gradle.properties