ProcessException error while executing / build -tools / 19.1.0 / aapt.exe with arguments

I tried to find this error, but, unfortunately, there is no solution yet. So you need to publish here.

I also tried cleaning / assembling but still getting the same error

enter image description here

build.gradle

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

android {
    compileSdkVersion 16
    buildToolsVersion '19.1.0'

    defaultConfig {
        applicationId "com.example.app"
        minSdkVersion 15
        targetSdkVersion 22
        versionCode 8
        versionName "2.3"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    mavenCentral()
    jcenter()
    maven { url 'https://maven.fabric.io/public' }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
    compile 'com.andreabaccega:android-form-edittext:1.1.0@aar'
    compile 'com.iangclifton.android:floatlabel:1.0.4'
    compile 'com.mcxiaoke.volley:library:1.0.15'
    compile 'com.soundcloud.android:android-crop:1.0.0@aar'
    compile project(':facebook')
    compile 'com.android.support:support-v4:24.2.0'
    compile 'com.android.support:appcompat-v7:24.2.1'
    compile 'com.android.support:recyclerview-v7:24.2.1'
    compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
    compile 'com.nineoldandroids:library:2.4.0'
    compile('com.crashlytics.sdk.android:crashlytics:2.5.0@aar') {
        transitive = true;
    }
    compile project(':aFileChooser')
    compile files('libs/LiveChatWindow.jar')
}

After update

  compileSdkVersion 25  
   buildToolsVersion "25.0.1" 
   compile 'com.android.support:appcompat-v7:25.0.1'  
   compile 'com.android.support:recyclerview-v7:25.0.1'

Error: execution completed for task ': app: mergeDebugResources'.

Error: com.android.builder.internal.aapt.AaptException: Could not collapse file C: \ my_folder \ my_project \ application \ build \ intermediate \ parsed-AAR \ com.facebook.android \ facebook \ 4.4.1 \ Reza \ hood -xhdpi-v4 \ com_facebook_tooltip_black_background.9.png in C: \ my_folder \ my_project \ application \ build \ intermediate \ Res \ merged \ Debug \ hoods-xhdpi-v4 \ com_facebook_tooltip_black_background.9.png

: com.android.builder.internal.aapt.AaptException: C:\my_folder\my_project\\\\-AAR\com.facebook.android\facebook\4.4.1\\-xhdpi-v4\com_facebook_tooltip_black_background.9.png C:\my_folder\my_project\\\\\\Debug\-xhdpi-v4\com_facebook_tooltip_black_background.9.png

+4

Source: https://habr.com/ru/post/1662504/


All Articles