【问题标题】:Android studio not working while gradle does not compile and has errorAndroid Studio 无法工作,而 gradle 无法编译并出现错误
【发布时间】:2016-04-20 12:12:55
【问题描述】:

我尝试了更改扩展名的方法,但也不能解决问题,还有什么办法吗?

:app:mergeDebugResources

:app:prepareComAndroidSupportDesign2330Library

:app:prepareComAndroidSupportRecyclerviewV72330Library

:app:prepareComAndroidSupportAnimatedVectorDrawable2330Library

:app:prepareComAndroidSupportSupportVectorDrawable2330Library

:app:preReleaseBuild UP-TO-DATE

:app:generateDebugResources

:app:generateDebugAssets UP-TO-DATE

:app:generateDebugBuildConfig

:app:checkDebugManifest

:app:preDebugBuild UP-TO-DATE

:app:compileDebugRenderscript

:app:preBuild UP-TO-DATE

:app:prepareComAndroidSupportSupportV42330Library

:app:generateDebugResValues UP-TO-DATE

Information:Gradle tasks [:app:clean, :app:generateDebugSources, 

:app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, 

:app:generateDebugAndroidTestSources, :app:assembleDebug]

:app:compileDebugAidl

AAPT err(Facade for 1614764273): libpng error: Not a PNG file

AAPT err(Facade for 1614764273): libpng error: Not a PNG file

:app:clean

:app:prepareComAndroidSupportAppcompatV72330Library

:app:prepareDebugDependencies

:app:mergeDebugAssets

AAPT err(Facade for 1919759698): libpng error: Not a PNG file

AAPT err(Facade for 2070257548): libpng error: Not a PNG file

AAPT err(Facade for 246113197): libpng error: Not a PNG file

AAPT err(Facade for 974013731): libpng error: Not a PNG file

Error:Execution failed for task ':app:mergeDebugResources'.

部分文件处理失败,详见日志

Information:BUILD FAILED

【问题讨论】:

    标签: android android-studio logging android-gradle-plugin build.gradle


    【解决方案1】:

    希望这会有所帮助,

    剪切图像并将其粘贴到系统中的任何位置,并使用相应的编辑器打开每个图像并保存为相同但以 PNG 格式保存,然后再次复制并粘贴到可绘制文件夹。

    【讨论】:

    • PNG 问题解决了,现在我面临这个错误错误:任务':app:processDebugResources'的执行失败。 > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\User\AppData\Local\Android\android-sdk\build-tools\23.0. 3\aapt.exe'' 以非零退出值 1 结束
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-04-22
    • 2013-05-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多