【问题标题】:How To fix Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018如何修复配置“编译”已过时,已替换为“实施”和“API”。将于 2018 年底移除
【发布时间】:2018-11-19 16:11:07
【问题描述】:

配置“编译”已过时,已替换为“实施”和“API”。 它将在 2018 年底被删除(如何修复)?

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

    compile('com.mikepenz:fastadapter:2.6.3@aar') {
        transitive = true
    }
    implementation  'com.android.support:appcompat-v7:26.0.2'
    implementation  'com.android.support:cardview-v7:26.0.2'
    implementation  'com.android.support:support-v4:26.0.2'
    implementation  'com.android.support:animated-vector-drawable:26.0.2'
    implementation  'com.android.support:design:26.0.2'
    implementation 'com.github.bumptech.glide:glide:3.7.0'
    implementation  'com.synnapps:carouselview:0.1.4'
    implementation  'com.mikepenz:fastadapter-commons:2.6.3@aar'
    implementation  'com.mikepenz:fastadapter-extensions:2.6.3@aar'
    implementation  'com.miguelcatalan:materialsearchview:1.4.0'
    implementation  'org.jsoup:jsoup:1.10.3'
    implementation  'com.thefinestartist:finestwebview:1.2.7'
    implementation  'com.github.chrisbanes:PhotoView:1.3.1'
    implementation  'com.fnp:material-preferences:0.1.4'
    implementation  'com.thebluealliance:spectrum:0.7.1'
    implementation  'com.firebaseui:firebase-ui-auth:2.3.0'
    implementation  'com.google.firebase:firebase-messaging:11.2.2'
    implementation 'com.google.firebase:firebase-crash:11.2.2'
    implementation 'com.google.firebase:firebase-invites:11.2.2'
    implementation 'com.google.firebase:firebase-ads:11.2.2'
    implementation 'com.google.firebase:firebase-auth:11.2.2'
    implementation 'com.google.android.gms:play-services-auth:11.2.2'
    implementation 'com.onesignal:OneSignal:[3.6.0, 3.99.99]'
    implementation 'com.android.support:multidex:1.0.1'
    // Required only if Facebook login support is required
    implementation ('com.facebook.android:facebook-android-sdk:4.22.1')

    // Required only if Twitter login support is required
    implementation ("com.twitter.sdk.android:twitter-core:3.0.0@aar") { transitive = true }
}
apply plugin: 'com.google.gms.google-services'

【问题讨论】:

标签: android


【解决方案1】:

用实现替换编译:

compile('com.mikepenz:fastadapter:2.6.3@aar') {
    transitive = true
}

【讨论】:

  • 尝试用api替换compile
猜你喜欢
  • 1970-01-01
  • 2018-10-28
  • 2018-09-17
  • 1970-01-01
  • 2019-11-03
  • 2019-06-15
  • 2019-08-19
  • 2018-11-24
  • 2018-11-30
相关资源
最近更新 更多