【问题标题】:android support library errorandroid支持库错误
【发布时间】:2017-05-09 08:44:15
【问题描述】:

不知道发生了什么,我试图更新我的存储库,但我仍然收到一个错误,所有 android studio 支持库都应该有一个确切的版本!!请建议我该怎么做,这样我的应用程序就不会陷入运行时错误并且不会崩溃!

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "info.BBBApp.firebase"
        minSdkVersion 19
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.0.2'
    compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
   // compile 'com.google.firebase:firebase-core:9.4.0'
    // compile 'com.google.firebase:firebase-auth:9.4.0'
   // compile 'com.google.firebase:firebase-storage:9.4.0'
   // compile 'com.google.firebase:firebase-databse:9.4.0'
    compile 'com.firebaseui:firebase-ui:0.4.0'
   // compile 'com.google.android.gms:play-services-auth:9.4.0'
    testCompile 'junit:junit:4.12'
}

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

【问题讨论】:

  • 那么你得到的错误究竟是什么?
  • 将此行 com.firebaseui:firebase-ui:0.4.0 更改为:com.firebaseui:firebase-ui:1.2.0 是否有效?
  • 我在 compile 'com.android.support:appcompat-v7:25.0.2' 下出现红线!!
  • libs 里面是什么?
  • @alexmamo 我改变了你的建议,但它导致另一个错误,如 com.twitter.sdk.android:twitter:2.3.0 failed to load..

标签: android android-studio firebase firebase-authentication


【解决方案1】:

使用最新版本,因此请进行一些更改。

compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.firebaseui:firebase-ui:1.2.0'

【讨论】:

  • 我真的很沮丧,帮帮我
  • 根据您的建议,我将代码更改为这样 compile 'com.android.support:appcompat-v7:25.3.1'compile 'com.android.support.constraint:constraint-layout:1.0 .0-beta4 '编译'com.firebaseui:firebase-ui:1.2.0' testCompile 'junit:junit:4.12'
  • 为什么是1.0.0-beta‌​4 版本
  • APPCompat 的第一个编译文件出错
  • 嘿伙计,谢谢你的帮助,没有任何工作,然后我用 Sdk 从我的笔记本电脑上清理了所有 android studio 并进行了全新安装,下载了所有 API 和所有组件,所以现在我们到了工作得很好。 :) 再次感谢您的帮助。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-07-12
  • 1970-01-01
  • 1970-01-01
  • 2015-01-09
  • 1970-01-01
  • 1970-01-01
  • 2015-08-07
相关资源
最近更新 更多