android studio-使用build apk或release功能后apk过多

android studio-使用build apk或release功能后apk过多,android,android-studio,build.gradle,apk,Android,Android Studio,Build.gradle,Apk,我正试图在android studio中通过构建apk功能构建apk。但是我发现了类似于所附图像的内容。我从来没有发现过这种APK,我也不知道这是怎么发生的。有人能解释这些APK是什么以及为什么会发生吗 我的build.gradle文件: apply plugin: 'com.android.application' android { compileSdkVersion 30 buildToolsVersion "30.0.0" default

我正试图在android studio中通过构建apk功能构建apk。但是我发现了类似于所附图像的内容。我从来没有发现过这种APK,我也不知道这是怎么发生的。有人能解释这些APK是什么以及为什么会发生吗

我的build.gradle文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.0"

    defaultConfig {
        applicationId "com.sakhawat.youtubedownloader"
        minSdkVersion 23
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

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

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

splits {
    abi {
        enable true
        reset()
        include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
        universalApk true
    }
}

}

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
// circle image view
implementation 'de.hdodenhof:circleimageview:2.1.0'

//lottie animation loader
implementation 'com.airbnb.android:lottie:2.5.0-rc1'

//youtube play library
implementation 'com.github.yausername.youtubedl-android:library:0.12.+'
implementation "com.devbrackets.android:exomedia:4.3.0"

//rx android
implementation "io.reactivex.rxjava2:rxandroid:2.1.0"

//google admob
implementation 'com.google.android.gms:play-services-ads:19.3.0'

}

您的build.gradle文件似乎包含拆分块

请阅读更多信息

[编辑]

正如我在上面告诉过你的build.gradle文件似乎包含一个splits块。 就是这样

splits {
    abi {
        enable true
        reset()
        include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
        universalApk true
    }
}

请注释掉此块,然后再次尝试构建apk,并让我们知道生成的apk。

我还认为我的build.gradle可能是原因,但我没有发现任何问题。我可以和你分享Gradle,如果你能有一个战利品,那将是令人惊讶的。我也在用Gradle图片更新我的问题。