将项目与新的android studio安装集成时出现问题

时间:2016-11-13 10:59:08

标签: android gradle android-gradle android-update-sdk

我在另一台机器上安装了最新的android studio,并试图运行我在另一台机器上构建的项目。我正在进行gradle构建失败,并且不确切知道导致问题的原因。 enter image description here

    apply plugin: 'com.android.application'

    android {
        compileSdkVersion 24
        buildToolsVersion "24.0.0"
    defaultConfig {
        applicationId "com.example.mudasir.login"
        minSdkVersion 16
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    packagingOptions{
        exclude'META-INF/NOTICE.txt'
        exclude'META-INF/NOTICE'
        exclude'META-INF/notice.txt'
        exclude'META-INF/LICENSE.txt'
        exclude'META-INF/LICENSE'
        exclude'META-INF/license.txt'

    }
    dexOptions{
        preDexLibraries = false
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:24.2.0'
    compile 'com.android.support:design:24.2.0'
    compile 'com.android.support:support-v4:24.2.0'
    compile 'com.google.android.gms:play-services:9.4.0'
    compile 'com.android.support:multidex:1.0.0'

}

0 个答案:

没有答案