Vai*_*tam 25 android firebase android-gradle-plugin
我收到这个错误.尽管尝试了所有的事情我无法解决它.请帮我.
我尝试过的事情是:
.build,.idea等再重建谢谢
插件
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'io.fabric'
Run Code Online (Sandbox Code Playgroud)
Android的
android {
dexOptions {
preDexLibraries = false
javaMaxHeapSize "2g"
}
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.funzone.alarmnap"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
multiDexEnabled true
versionName "1.1"
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
Run Code Online (Sandbox Code Playgroud)
Greendao插件
apply plugin: 'org.greenrobot.greendao'
greendao {
targetGenDir 'src/main/java'
schemaVersion 2
}
Run Code Online (Sandbox Code Playgroud)
所有图书馆:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.jjoe64:graphview:4.2.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.facebook.android:audience-network-sdk:4.+'
implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
implementation 'com.facebook.android:notifications:1.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:27.1.0'
implementation 'com.android.support:support-v4:27.1.0'
implementation 'com.android.support:support-v13:27.1.0'
implementation 'com.android.support:cardview-v7:27.1.0'
implementation 'com.google.firebase:firebase-messaging:12.0.1'
implementation 'com.google.firebase:firebase-core:12.0.1'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.1'
implementation 'com.android.support:multidex:1.0.3'
implementation 'org.greenrobot:greendao:3.2.2'
testImplementation 'junit:junit:4.12'
testImplementation "org.robolectric:shadows-multidex:3.0"
testImplementation 'org.robolectric:robolectric:3.4.2'
implementation 'com.android.support:preference-v7:27.1.0'
}
repositories {
mavenCentral()
google()
}
Run Code Online (Sandbox Code Playgroud)
谷歌插件
apply plugin: 'com.google.gms.google-services'
Run Code Online (Sandbox Code Playgroud)
Raj*_*jar 24
我在我的项目中解决了同样的问题 - 将Kotlin插件更新为1.2.41后(我不知道它是否真的相关.编辑:显然这与Kotlin无关) - 用:
classpath 'com.google.gms:google-services:3.2.1'
Run Code Online (Sandbox Code Playgroud)
https://developers.google.com/android/guides/google-services-plugin
备注:我可以使用独特的15.0.0Google Play服务库版本,但不能使用play-services-tagmanager以下版本firebase:
implementation "com.google.android.gms:play-services-tagmanager:15.0.2"
implementation "com.google.firebase:firebase-core:15.0.2"
Run Code Online (Sandbox Code Playgroud)
该项目正在编制中.
小智 7
同步gradle文件
classpath 'com.google.gms:google-services:3.2.0'
Run Code Online (Sandbox Code Playgroud)
和
//Firebase
implementation 'com.google.firebase:firebase-core:15.0.2'
implementation 'com.google.firebase:firebase-messaging:15.0.2'
implementation 'com.google.firebase:firebase-auth:15.0.0'
implementation 'com.google.firebase:firebase-database:15.0.1'
Run Code Online (Sandbox Code Playgroud)
您将需要更新各个库的版本。这解决了 Google 服务 Gradle 插件 3.3.0 版报告的问题:库com.google.android.gms:play-services-measurement-base正在 [[15.0.0,15.0. 0], [15.0.2,15.0.2]],但解析为 15.0.2...
有关最新更新的更多信息,请查看以下链接 Firebase 5 月 2 日发行说明
| 归档时间: |
|
| 查看次数: |
26519 次 |
| 最近记录: |