如何解决Android Studio 1.5中的错误?

时间:2019-01-06 11:27:05

标签: android-studio android-studio-3.0

通过解决此问题而沮丧对我有帮助。

{"map":{"ff":5}}

1 个答案:

答案 0 :(得分:1)

更多信息会有所帮助, 尝试将gradle(build.gradle)更改为此:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28

    buildToolsVersion "28.0.3"
    defaultConfig {
        applicationId "com.something.home.bloodbank"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    android {
        useLibrary 'org.apache.http.legacy'
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    testImplementation 'junit:junit:4.12'


    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'



    implementation 'com.mcxiaoke.volley:library:1.0.19'

    implementation 'com.mcxiaoke.volley:library:1.0.19'
    implementation 'com.android.support:multidex:1.0.0'
    implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.8'
    implementation 'com.android.support:design:28.2.1'
    implementation 'com.google.android.gms:play-services:11.0.4'
    implementation 'org.apache.httpcomponents:httpclient:4.5'
    implementation 'androidmads.library.qrgenearator:QRGenearator:1.0.3'
}




android {
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'

    }
}