gpt4 book ai didi

android - 警告:配置 'compile'已过时,已被 'implementation'和 'api'取代

转载 作者:行者123 更新时间:2023-12-03 05:32:57 32 4
gpt4 key购买 nike

在myapp / build.gradle中,我不使用编译配置,但保持显示此警告的状态

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.



这是我们的app / build.gradle

apply plugin: 'com.android.application'

android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "org.apoce.app"
minSdkVersion 14
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
defaultConfig{
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.github.satyan:sugar:1.4'
implementation 'com.jude:swipebackhelper:3.1.2'
implementation 'ch.acra:acra:4.9.0'
implementation 'com.google.firebase:firebase-messaging:9.6.1'
testImplementation 'junit:junit:4.12'
}


apply plugin: 'com.google.gms.google-services'

最佳答案

我只是将google服务更新到最新版本,并解决了问题

关于android - 警告:配置 'compile'已过时,已被 'implementation'和 'api'取代,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58290458/

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