无法使用Gradle 3.0.1运行项目

时间:2019-01-07 06:32:14

标签: android android-studio android-gradle

我无法运行项目..it,显示以下错误。我已经尝试过Rebuild,Invalid caches选项,但是仍然无法正常工作。我正在使用gradle版本3.0.1

处理'命令'C:\ Users \ THUNGA \ AppData \ Local \ Android \ Sdk \ build-tools \ 26.0.2 \ aapt.exe''以非零退出值1完成。

我的Gradle文件是

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
//    buildToolsVersion '26.0.2'
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
    }
    defaultConfig {
        applicationId "com.karosambhav.karo"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 68
        versionName "1.1.68"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    dexOptions {
        javaMaxHeapSize "4g"
    }
    productFlavors {
        karodev {
            applicationId "com.karosambhav_dev.karo"
            resValue "string", "app_name", "Karo Sambhav Dev"

        }
        karoprod {
            applicationId "com.karosambhav.karo"
            resValue "string", "app_name", "Karo Sambhav"

        }
    }

    flavorDimensions "default"
    useLibrary 'org.apache.http.legacy'
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    compile files('libs/android-styled-dialogs-2.2.0-sources.jar')
    compile files('libs/volley.jar')
    compile files('libs/gcm.jar')
    //    compile 'com.github.PhilJay:MPAndroidChart:v3.0.1'
    compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'
    compile files('libs/android-styled-dialogs-2.2.0-sources.jar')
    compile files('libs/httpclient-4.3.6.jar')
    compile files('libs/httpcore-4.3.3.jar')
    compile files('libs/httpmime-4.3.6.jar')
    compile files('libs/xstream-1.4.7.jar')
    /*  java html parser*/
//    compile 'com.anton46:stepsview:0.0.2' /*step progress signup*/
//    compile 'com.kofigyan.stateprogressbar:stateprogressbar:0.0.6'


    compile 'com.splitwise:tokenautocomplete:1.3.3@aar'
    compile 'com.android.support:appcompat-v7:26.1.0'
    compile 'com.android.support:design:26.1.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.1'
    compile 'id.zelory:compressor:1.0.4'
    compile 'com.android.support:cardview-v7:26.1.0'
    compile 'org.jsoup:jsoup:+'
    compile 'com.android.support:support-vector-drawable:26.1.0'
    compile 'com.google.android.gms:play-services:11.2.2'
    compile 'com.google.android.gms:play-services-maps:11.2.2'
    compile 'com.google.android.gms:play-services-location:11.2.2'
    compile 'com.google.maps.android:android-maps-utils:0.5+'
    compile 'com.android.support:multidex:1.0.0'
    testCompile 'junit:junit:4.12'
    compile 'com.google.firebase:firebase-database:11.2.2'
    compile 'com.google.firebase:firebase-messaging:11.2.2'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
}
apply plugin: 'com.google.gms.google-services'

请帮助我

0 个答案:

没有答案