进程'命令'F:\ SDK \ build-tools \ 26.0.2 \ aapt.exe''以非零退出值1结束

时间:2018-06-01 13:05:26

标签: android

当我尝试构建或运行我的项目时,这是我得到的错误,我只是一个初学者,所以我坚持这个,请帮我解决这个错误。

我还附上了gradle文件。

  

处理'命令'F:\ SDK \ build-tools \ 26.0.2 \ aapt.exe''以非零退出值1结束

App Gradle

buildscript {
    repositories { maven { url 'https://maven.fabric.io/public' } }
    dependencies { classpath 'io.fabric.tools:gradle:1.20.1' }
}
plugins {
    id 'com.onesignal.androidsdk.onesignal-gradle-plugin' version '0.8.1'
}
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'

repositories {
    maven { url 'https://maven.google.com' }
}

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

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

android {
    compileSdkVersion 26
    buildToolsVersion '26.0.2'
    useLibrary 'org.apache.http.legacy'
    defaultConfig {
        applicationId "io.devotee.app"
        minSdkVersion 19
        targetSdkVersion 26
        versionCode 102
        versionName "1.0.2"
        multiDexEnabled true
//        resConfigs "en"
        manifestPlaceholders = [onesignal_app_id               : "57d8914b-2368-4852-9e52-7f40c8014170",
                                // Live
                                onesignal_google_project_number: "REMOTE"]

////
//        manifestPlaceholders = [onesignal_app_id               : "b35433d4-be61-473f-94f8-65364b2cd501",
//                                // Internal Testing
//                                onesignal_google_project_number: "REMOTE"]
    }
    android {
        lintOptions {
            checkReleaseBuilds false
            abortOnError false
        }
    }

    android {
        buildTypes {

            packagingOptions {
                exclude 'META-INF/NOTICE' // will not include NOTICE file
                exclude 'META-INF/LICENSE' // will not include LICENSE file
                // as noted by @Vishnuvathsan you may also need to include
                // variations on the file name. It depends on your dependencies.
                // Some other common variations on notice and license file names
                exclude 'META-INF/notice'
                exclude 'META-INF/notice.txt'


                exclude 'META-INF/license'
                exclude 'META-INF/license.txt'
            }

            debug {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }

            release {
                debuggable false
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
                consumerProguardFiles 'proguard-file.pro'
            }
        }
    }

    dexOptions {
        preDexLibraries = false
        javaMaxHeapSize "12g"
    }
}

repositories
        {
            maven { url 'https://repo.commonsware.com.s3.amazonaws.com' }
            maven { url 'https://jitpack.io' }
            maven { url "https://s3.amazonaws.com/repo.commonsware.com" }
        }
//configurations.all {
//    resolutionStrategy {
//        force 'com.android.support:design:23.4.0'
////        force 'com.android.support:support-v4:23.4.0'
//        force 'com.android.support:appcompat-v7:23.4.0'
//    }
//}

dependencies {
    compile 'com.android.support:recyclerview-v7:26.0.2'
    compile 'com.android.support:cardview-v7:26.0.2'
//    compile 'com.helpshift:android-aar:3.7.2'
    compile 'com.mcxiaoke.volley:library:1.0.19'
    compile files('libs/universal-image-loader-1.6.1-with-src.jar')
    compile project(':library')
    compile files('libs/Parse-1.8.0.jar')
    compile project(':gallery')
    compile project(':indicator')
    compile 'com.amplitude:android-sdk:2.9.2'
    compile 'com.razorpay:checkout:1.4.1'
    compile('com.crashlytics.sdk.android:crashlytics:2.6.6@aar') {
        transitive = true;
    }
//    compile 'com.hokolinks:hoko:2.3.0'
    compile 'cat.ereza:customactivityoncrash:1.5.0'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.android.support:design:26.0.2'
    compile 'com.google.android.gms:play-services-auth:12.0.0'
    compile 'com.google.android.gms:play-services-base:12.0.0'
    compile 'com.google.firebase:firebase-appindexing:12.0.0'
    compile 'com.google.android.gms:play-services-appinvite:12.0.0'
    compile 'com.google.android.gms:play-services-gcm:12.0.0'
    compile 'com.google.android.gms:play-services-location:12.0.0'
    compile 'com.google.android.gms:play-services-plus:12.0.0'
    compile 'com.google.android.gms:play-services-maps:12.0.0'
    compile 'com.github.jaydeepw:poly-picker:v1.0.22'
    compile 'com.github.Commit451:NativeStackBlur:1.0.2'
    compile 'com.github.Hitta:RippleEffect:82cf00e551'
    compile 'com.github.zplesac:android_connectionbuddy:v1.0.7'
    compile 'com.github.paolorotolo:expandableheightlistview:1.0.0'
    compile 'com.github.tony19:timber-loggly:1.0.1'
    compile 'com.neumob:neumob-android:3.7.2'
    compile 'com.facebook.fresco:fresco:1.8.0'
    compile 'com.firebase:firebase-client-android:2.5.2'
    compile 'com.google.android.exoplayer:exoplayer:r1.5.10'
    compile project(':common')
    compile project(':commonwidget')
    compile project(':videowidget')
    compile 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7'
    compile project(':Spotlight-library')
    compile 'com.onesignal:OneSignal:3.+@aar'
    compile files('libs/YouTubeAndroidPlayerApi.jar')
    compile files('libs/dropbox-android-sdk-1.6.3.jar')
    compile 'com.pitt.fresh.library:freshdownloadview:1.0'
    compile 'es.voghdev.pdfviewpager:library:1.0.1'
    compile('com.crashlytics.sdk.android:answers:1.3.11@aar') {
        transitive = true;
    }
//    compile 'com.bugsee:bugsee-android:+'
    compile 'com.google.firebase:firebase-auth:12.0.0'
    compile 'com.stripe:stripe-android:5.0.0'
    compile 'com.google.firebase:firebase-core:12.0.0'
    compile 'com.google.firebase:firebase-perf:12.0.0'
    compile 'io.branch.sdk.android:library:2.+'
    compile project(path: ':androidQuery')
    compile 'com.onesignal:OneSignal:[3.7.1, 3.99.99]'
    compile 'com.instabug.library:instabug:4.11.0'
    compile('io.branch.sdk.android:library:2.+') {
        exclude module: 'answers-shim'
    }
    compile 'com.android.support.constraint:constraint-layout:1.1.0'
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.firebase-perf'

Project Gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.


buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        classpath 'com.google.gms:google-services:3.1.0'
        classpath 'com.google.firebase:firebase-plugins:1.1.1'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        google()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

0 个答案:

没有答案