ExecuteTaskAction :app:processDebugManifest 错误

突然出现执行任务动作问题。


我尝试了那里和其他页面的解决方案,但没有帮助,因为它们是旧版本的 Android Studio。


我的build.gradle


apply plugin: 'com.android.application'


android {

    compileSdkVersion 28

    defaultConfig {

        applicationId "com.example.asus.thesister"

        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'

        }

     }

    }


dependencies {

    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'com.android.support:appcompat-v7:28.0.0'

    implementation 'com.android.support.constraint:constraint-layout:1.1.3'

    implementation 'com.android.support:support-v4:28.0.0'

    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.android.support:design:28.0.0'

    implementation 'org.jetbrains:annotations-java5:15.0'

    implementation 'com.android.support:recyclerview-v7:28.0.0'

    implementation 'com.google.android.gms:play-services-ads:18.1.0'

    implementation 'com.android.support:cardview-v7:28.0.0'


}

错误:


:app:processDebugManifest 错误


茅侃侃
浏览 203回答 1
1回答

斯蒂芬大帝

ExecuteTaskAction :app:processDebugManifest 错误 Android Studio该问题似乎与 AndroidX 库有关。这是因为您正在使用具有以下依赖项的 AndroidX 的 Google Play 服务:implementation 'com.google.android.gms:play-services-ads:18.1.0'Google Play 服务从版本 17 开始,使用的是 AndroidX。请参阅https://developers.google.com/android/guides/releases#june_17_2019您需要将您的 Google Play 服务降级到版本 16(强烈建议不要这样做)或迁移您的项目以使用 AndroidX(请参阅迁移到 AndroidX)
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java