[英]Issues after updating android support library dependencies
我在build.gradle
文件中更新了android支持庫依賴項,然后在嘗試構建項目時顯示以下錯誤:
AAPT: libpng error: Not a PNG file
:app:mergeDebugResources FAILED
Error:Execution failed for task ':app:mergeDebugResources'.
> Some file crunching failed, see logs for details
當我使用舊的依賴項時,它工作正常:
舊的依賴項:
compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:percent:23.1.1'
compile 'com.android.support:support-v13:23.1.1'
新的依賴項:
compile 'com.android.support:support-v4:24.0.0-alpha1'
compile 'com.android.support:appcompat-v7:24.0.0-alpha1'
compile 'com.android.support:design:24.0.0-alpha1'
compile 'com.android.support:percent:24.0.0-alpha1'
compile 'com.android.support:support-v13:24.0.0-alpha1'
誰能幫我解決這個問題?
非常感謝您的時間和協助。
有一些相關的問題使問題出現:
這可能與不是png類型但重命名為png的圖像類型有關。 您可以檢查圖像的類型。
該項目正在使用一個舊的生成項目,因此請嘗試清理並重建您的項目。
作為最后的選擇,您可以嘗試從Android Studio菜單中嘗試File->Invalidate Caches/Restart..
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.