我当前正在将我的应用更新为最新标准。我总是在Android Studio中收到错误消息...
出现此错误:
配置“编译”已过时,并且已经 替换为“实现”和“ api”。它将在 于2018年底。有关更多信息,请参阅: http://d.android.com/r/tools/update-dependency-configurations.html
-
这是我的Gradle文件:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url "https://s3.amazonaws.com/moat-sdk-builds" }
maven { url 'https://plugins.gradle.org/m2/'}
}
dependencies {
//noinspection GradleDynamicVersion
classpath 'io.fabric.tools:gradle:1.+'
//noinspection GradleDependency
classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.11.0, 0.99.99]'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url "https://s3.amazonaws.com/moat-sdk-builds" }
maven { url 'https://maven.google.com' }
}
android {
compileSdkVersion 26
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.MYAPP"
minSdkVersion 16
targetSdkVersion 26
versionCode 11
versionName "1.0.9.1"
multiDexEnabled true
manifestPlaceholders = [
onesignal_app_id: 'myID',
// Project number pulled from dashboard, local value is ignored.
onesignal_google_project_number: 'instdownload'
]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// testimplementation 'junit:junit:4.12'
//noinspection GradleDependency
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:cardview-v7:26.1.0'
//noinspection GradleDependency
implementation 'com.android.support:multidex:1.0.1'
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
//noinspection GradleDependency
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.github.devlight.navigationtabstrip:navigationtabstrip:1.0.4'
implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.5.0'
//noinspection GradleDependency
implementation 'com.google.android.gms:play-services-ads:15.0.1'
//noinspection GradleDependency
implementation 'com.google.firebase:firebase-ads:15.0.1'
//noinspection GradleDependency
implementation 'com.google.firebase:firebase-core:15.0.2'
implementation 'com.github.paolorotolo:appintro:3.4.0'
//noinspection GradleDependency
implementation group: 'commons-io', name: 'commons-io', version: '2.4'
implementation 'org.jsoup:jsoup:1.10.2'
implementation 'com.google.ads.mediation:mopub:4.20.0.0'
implementation 'io.github.kobakei:ratethisapp:1.2.0'
//noinspection GradleDependency
implementation 'com.onesignal:OneSignal:[3.9.1, 3.99.99]'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation('com.mikepenz:materialdrawer:5.8.2@aar') {
transitive = true
}
implementation('com.crashlytics.sdk.android:crashlytics:2.9.2@aar') {
transitive = true
}
implementation('com.crashlytics.sdk.android:answers:1.4.1@aar') {
transitive = true
}
implementation('com.mopub:mopub-sdk:4.20.0@aar') {
transitive = true
}
}
apply plugin: 'com.google.gms.google-services'
请帮助我