gpt4 book ai didi

java - 执行任务操作 :app:processDebugManifest error Android Studio

转载 作者:行者123 更新时间:2023-12-02 03:10:33 24 4
gpt4 key购买 nike

我突然遇到执行任务操作问题。

我尝试了那里和其他页面的解决方案,但没有帮助,因为它们是旧版本的 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 error

最佳答案

ExecuteTaskAction :app:processDebugManifest error 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(请参阅 Migrating to AndroidX)

关于java - 执行任务操作 :app:processDebugManifest error Android Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56998038/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com