小编Ant*_*y K的帖子

在gradle:3.0.0发现多个文件与OS独立路径'META-INF/ASL2.0'

我已将我的Android工作室更新为3.0,然后他要求升级到 'com.android.tools.build:gradle:3.0.0'

一切顺利,直到我决定运行我的项目,它给了我这个错误

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
Run Code Online (Sandbox Code Playgroud)

在OS独立路径'META-INF/ASL2.0'中找到多个文件

我的应用程序gradle

   android {
    compileSdkVersion 26
    buildToolsVersion "26.0.2"
    useLibrary 'org.apache.http.legacy'
    defaultConfig {
        applicationId "com.test.demo"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}'
Run Code Online (Sandbox Code Playgroud)

我的图书馆是gradle

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.2"
    useLibrary 'org.apache.http.legacy'

    defaultConfig {
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_6
            targetCompatibility JavaVersion.VERSION_1_6
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude …
Run Code Online (Sandbox Code Playgroud)

android gradle android-studio build.gradle android-gradle-plugin

12
推荐指数
3
解决办法
5万
查看次数

Android Studio 模拟器错误“AVD 模拟器进程已被终止”

这是我收到的错误:

AVD Pixel_XL_API_30 的模拟器进程被终止

所有虚拟设备均不运行。我尝试删除它们的目录,然后创建新的目录。

android android-emulator android-studio

10
推荐指数
1
解决办法
4318
查看次数