【问题标题】:java.lang.NoSuchFieldError PREFER_HIGHEST_OR_REMOTE_VERSION_NO_FORCE_STAGINGjava.lang.NoSuchFieldError PREFER_HIGHEST_OR_REMOTE_VERSION_NO_FORCE_STAGING
【发布时间】:2019-10-10 01:15:07
【问题描述】:

如何解决此类错误?以及如何更新 gradle 我正在使用 firebase Auth、firebase core 和 firebase 数据库

【问题讨论】:

  • 请提供您的代码,以便我们尝试查明错误原因。还提供一些 Gradle 文件可能会加快进程。
  • 如果出现此错误,我无法发布整个代码..“看起来您的帖子主要是代码;请添加更多详细信息。”
  • 但这是我的依赖
  • 在下面的答案中

标签: android android-studio android-fragments


【解决方案1】:
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
    //recyclerView
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    //card view
    implementation 'com.android.support:cardview-v7:28.0.0'
    //picasso library to retrieve images
    implementation 'com.squareup.picasso:picasso:2.71828'

    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    //firebase
    implementation 'com.google.firebase:firebase-core:16.0.1'
    //firebase Auth
    implementation 'com.google.firebase:firebase-auth:16.0.1'
    //firebase Storage
    implementation 'com.google.firebase:firebase-storage:16.0.1'
    // Glide library
    implementation 'com.github.bumptech.glide:glide:4.9.0'
    implementation 'com.android.support:support-v4:28.0.0'

    implementation 'com.google.android.gms:play-services-maps:15.0.1'
    implementation 'com.google.android.gms:play-services-location:15.0.0'
    implementation 'com.google.android.gms:play-services-places:15.0.0'
    implementation 'com.google.android.libraries.places:places-compat:1.1.0'

    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.navigation:navigation-fragment:2.0.0'
    implementation 'androidx.navigation:navigation-ui:2.0.0'
    implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'

    implementation 'com.firebaseui:firebase-ui-database:0.4.0'

    implementation 'de.hdodenhof:circleimageview:3.0.1'

    implementation 'com.googlecode.libphonenumber:libphonenumber:8.9.7'
    implementation 'com.google.firebase:firebase-database:16.0.1'
    implementation 'com.android.support:design: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.github.clans:fab:1.6.4'


}

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

【讨论】:

    猜你喜欢
    • 2019-03-14
    • 2015-10-10
    • 2013-06-05
    • 2013-01-04
    • 2020-04-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-04
    相关资源
    最近更新 更多