【问题标题】:Execution failed for task 'app:mergeDebugResources' Crunching Cruncher…png failed任务“app:mergeDebugResources”Crunching Cruncher 执行失败...png 失败
【发布时间】:2015-10-24 13:03:24
【问题描述】:

AAPT 错误(833489116):/home/pankaj/Android/Sdk/build-tools/22.0.1/aapt:加载共享库时出错:libz.so.1:无法打开共享对象文件:没有这样的文件或目录

我的等级是这个

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "22.0.1"


    defaultConfig {
        applicationId "comproject.deltastara.myapplication"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}




dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'uk.co.chrisjenx:calligraphy:2.1.0'
    compile 'com.android.support:recyclerview-v7:23.0.1'
    compile 'com.mcxiaoke.volley:library:1.0.19'
    compile 'com.android.support:design:23.0.1'
    compile 'de.hdodenhof:circleimageview:2.0.0'
    compile 'com.android.support:support-v4:23.0.1'
}

【问题讨论】:

  • 我只是在这里吐口水,但“png 失败”对我来说听起来像是一个不正确的 9 补丁。
  • 是的,这里有同样的问题,但是当我在其他 android studio 中运行这个项目时,它运行成功运行这种类型的错误显示:app:mergeDebugResources AAPT err(255699918): /home/pankaj/Android/Sdk /build-tools/22.0.1/aapt:加载共享库时出错:libz.so.1:无法打开共享对象文件:没有这样的文件或目录

标签: android


【解决方案1】:

安装 lib32z1 解决了这个问题。为了清楚起见,我在终端中运行了以下内容

$sudo apt-get install lib32z1

【讨论】:

    猜你喜欢
    • 2015-08-26
    • 1970-01-01
    • 2015-05-15
    • 1970-01-01
    • 1970-01-01
    • 2019-06-04
    • 1970-01-01
    • 2020-11-18
    • 2021-02-01
    相关资源
    最近更新 更多