>
嗨,我正在实施Firebase崩溃analytics.when我在我的项目中添加了Firebase sdk,这些错误显示。我被困在这个日志时间,我试图降低实现,但它显示了另一个错误。所以你能解决这个问题me.below添加了构建错误和gradlecode.so可以请解决这个问题。
在org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:38)在org.gradle.api.internal.tasks.execution.EventFiringTaskExectter$1.execute任务(EventFiringTaskExecuter.java:77)在org.gradle.api.internal.tasks.execution.EventFiringTaskExectter$1.call(EventFiringTaskExecuter.java:55)在org.gradle.api.internal.tasks.execution.EventFiringTaskExectter$1.call(EventFiringTaskExecuter.java:52)在org.gradle.internal.operations.DefaultBuildOPationExecator$CallableBuildOPationWorker.execute(DefaultBuildOPationExecutor.java:416)org.gradle.internal.operations.DefaultBuildoperationExecator$CallableBuildoperationWorker.execute(DefaultBuildOPationExecutor.java:406)在org.gradle.internal.operations.DefaultBuildOPationExecutor1美元。DefaultBuildoperationExecutor.执行(DefaultBuildoperationExecutor. java: 250)在org. gradle. interal. operations。DefaultBuildoperationExecutor.执行(DefaultBuildoperationExecutor. java: 158)at org. gradle. interal. operations.DefaultBuildoperationExecutor. call(DefaultBuildoperationExecutor. java: 102)at org. gradle. interal. operations.在org. gradle. api. interal. tasks.执行中调用(委托构建操作执行器. java: 36)。执行(EventFiringTaskExectter. java: 52)在org. gradle.执行. plan。执行(LocalTaskNodeExecutor. java: 43)在org. gradle.执行. taskgraph。[CNNVD]DefaultTaskExecttionGgraph$InvokeNodeExecutorsAction.执行(DefaultTaskExecttionGraph. java: 355)在org. gradle.执行. taskgraph.[CNNVD]DefaultTaskExecttionGgraph$InvokeNodeExecutorsAction.执行(DefaultTaskExecectGraph. java: 343)在org. gradle.执行. taskgraph.DefaultTaskExektionGgraph$BuildoperationAware ExektionAction.执行(DefaultTaskExektionGraph. java: 336)在org. gradle.执行. taskgraph。[CNNVD]DefaultTaskExektionGgraph$BuildoperationAware ExektionAction.执行(DefaultTaskExektionGraph. java: 322)在org. gradle.执行. plan.DefaultPlanExecator$ExecutorWorker1美元。执行(DefaultPlanExecutor. java: 134)在org. gradle.执行. plan。DefaultPlanExecator$ExecutorWorker1美元。执行(DefaultPlanExecutor. java: 129)在org. gradle.执行. plan。DefaultPlanExecator$ExecutorWorker。执行(DefaultPlanExecutor. java: 202)在org. gradle.执行. plan。DefaultPlanExecator$ExecutorWorker. java的NextNode(DefaultPlanExecutor. java: 193)。DefaultPlanExecator$ExecutorWorker. run(DefaultPlanExecutor. java: 129)at org. gradle. interal. con电流。执行政策$CatchAndRecordFailures. onExecute(ExecutorPolics. java: 64)at org. gradle. interal.同时。ManagedExecutorImp 1美元. run(ManagedExecutorInp. java: 48)at org. gradle. interal. con当前。ThreadFactoryImpl$ManagedThreadRunnable. run(ThreadFactoryInp. java: 56)引起:org. gradle. api。在项目'app'中,已解决的Google Play服务库依赖关系依赖于另一个精确版本(例如Google Play)。"[18.0.0]",但没有解析到该版本。图书馆展示的行为将是未知的。
依赖失败:com.google.firebase:Firebase消息传递:18.0.0-
以下依赖关系是项目依赖关系,它们是直接的或具有传递性的依赖关系,从而导致与问题相关的art ifact。-项目“应用程序”依赖于com.google.firebase:firebase-config@17.0.0--项目“应用程序”依赖于com.google.firebase:firebase-messaging@18.0.0--项目“应用程序”依赖于com.google.firebase:firebase-core@17.0.1--项目“应用程序”依赖于com.google.firebase:firebase crashlytics@{17.0.0}——项目“应用程序”依赖于com.google.firebase:firebase配置{17.0.0}——项目“app”依赖于com.google.firebase:firebase-analytics@17.2.2--项目“应用程序”依赖于com.google.firebase:firebase iid{20.1.5}--项目“应用程序”依赖于com.google.firebase:firebase核心{17.0.1}——项目“应用程序”依赖于com.google.firebase:firebase消息@{18.0.0}--项目“应用程序”依赖于com.google.firebase:firebase-crashlytics@17.0.0--项目“应用程序”依赖于com.google.Androidgms:play services measurement api{17.2.2}——项目“app”依赖于com.google.firebase:firebase analytics@{17.2.2}
对于扩展调试信息,请使用从命令行执行Gradle/gradlew--info:app:assembleDebug查看工件的dep-endence路径。此错误消息来自google services Gradle插件,在https://github上报告问题。com/google/play服务插件,并通过将“googleServices{disableVersionCheck=false}”添加到您的b build中来禁用。格雷德尔档案。
5秒内构建失败
buildscript {
ext.kotlin_version = '1.3.31'
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.2"
classpath 'com.google.gms:google-services:4.2.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
classpath 'net.sf.proguard:proguard-gradle:6.0.3'
classpath 'io.fabric.tools:gradle:1.+'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
maven {
url "https://maven.google.com"
// Google's Maven repository
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-android'
apply plugin: 'io.fabric'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.taxi.deals.newuser"
minSdkVersion 19
targetSdkVersion 28
versionCode 90
versionName "0.7"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
}
/* signingConfigs {
release {
storeFile file("")
storePassword ""
keyAlias ""
keyPassword ""
}
}*/
buildTypes {
debug {
buildConfigField("String", "BASE_URL", "\"http://1-dot-taxi2.appspot.com\"")
buildConfigField("String", "BASE_URL_SWISS", "\"http://1-dot-taxi2.appspot.com\"")
buildConfigField("String", "BASE_URL_IN", "\"http://1-dot-taxi2.appspot.com\"")
buildConfigField("String", "API_KEY", "\"ABCXYZ123TEST\"")
}
release {
minifyEnabled false
useProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField("String", "BASE_URL", "\"http://1-dot-taxi2.appspot.com\"")
buildConfigField("String", "BASE_URL_SWISS", "\"http://1-dot-taxi2.appspot.com\"")
buildConfigField("String", "BASE_URL_IN", "\"http://1-dot-taxi2.appspot.com\"")
buildConfigField("String", "API_KEY", "\"ABCXYZ123TEST\"")
}
}
/* sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
uat {
res.srcDir('uat/res')
}
prod {
res.srcDir('prod/res')
}
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
flavorDimensions ""
productFlavors {
uat {
applicationId 'http://1-dot-taxi2deals.appspot.com'
versionCode 1
}
prod {
applicationId 'http://1-dot-taxi2deal.appspot.com'
versionCode 1
}
}*/
repositories {
maven { url 'https://maven.fabric.io/public' }
}
buildToolsVersion '28.0.3'
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
lintOptions {
checkReleaseBuilds false
}
bundle {
language {
// Specifies that the app bundle should not support
// configuration APKs for language resources. These
// resources are instead packaged with each base and
// dynamic feature APK.
enableSplit = false
}
}
}
dependencies {
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.+'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:support-v13:28.0.0'
implementation 'com.android.support:exifinterface:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.github.GoodieBag:CarouselPicker:v1.1'
//Adding Fast Android Networking
implementation 'com.github.matecode:Snacky:1.0.3'
implementation "com.android.support:cardview-v7:28.0.0"
//external lib
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.romandanylyk:pageindicatorview:1.0.1@aar'
implementation "com.google.code.gson:gson:2.8.5"
implementation 'com.intuit.ssp:ssp-android:1.0.5'
implementation 'com.chootdev:typefaced:1.1.7'
// reactive
implementation "io.reactivex.rxjava2:rxjava:2.1.12"
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
/*Dagger*/
implementation "com.google.dagger:dagger:2.16"
annotationProcessor "com.google.dagger:dagger-compiler:2.16"
compileOnly "org.glassfish:javax.annotation:10.0-b28"
implementation 'javax.inject:javax.inject:1'
// network
implementation "com.amitshekhar.android:rx2-android-networking:1.0.2"
// swipe view
implementation "com.mindorks:placeholderview:0.6.1"
// logger
implementation "com.jakewharton.timber:timber:4.7.0"
//country num
implementation 'com.hbb20:ccp:2.2.4'
//map
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-places:16.1.0'
implementation 'com.google.firebase:firebase-firestore:19.0.0'
implementation 'com.google.firebase:firebase-config:17.0.0'
implementation 'com.google.firebase:firebase-messaging:18.0.0'
implementation 'com.google.android.libraries.places:places:1.0.0'
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
debugImplementation "com.amitshekhar.android:debug-db:1.0.3"
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.squareup.picasso:picasso:2.71828'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
implementation 'com.novoda:merlin:1.2.0'
implementation project(path: ':Arclibrary')
implementation project(':trail')
implementation project(':cartype')
implementation 'com.yarolegovich:mp:1.0.9'
implementation('com.paytm:pgplussdk:1.2.3') {
transitive = true;
}
implementation 'com.paytm:pgplussdk:1.2.3'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.8@aar') {
transitive = true;
}
//stripe payment gateway
implementation 'com.stripe:stripe-android:6.1.2'
implementation 'com.android.support:support-annotations:28.0.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.theartofdev.edmodo:android-image-cropper:1.2.1'
implementation 'com.github.yalantis:ucrop:2.2.3'
implementation 'com.google.code.gson:gson:2.6.1'
implementation "com.squareup.moshi:moshi:1.6.0"
implementation "com.adyen.checkout:ui:2.4.4"
implementation "com.adyen.checkout:nfc:2.4.4"
implementation 'com.google.android.gms:play-services-wallet:16.0.0'
implementation 'com.google.android.play:core:1.7.2'
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-auth:17.0.0'
implementation 'com.google.firebase:firebase-analytics:17.4.1'
implementation 'com.google.firebase:firebase-crashlytics:17.0.0'
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
configurations.all {
resolutionStrategy.force 'com.android.support:support-annotations:28.0.0'
}
repositories {
mavenCentral()
}
这里是Firebaser-
看起来您遇到了一个不匹配依赖项的问题,您已经定义了IID的版本,但是在该库的不同版本中还有其他依赖项。有几件事我能想到可能会有所帮助:
>
升级您的com.google.gms版本:google-service
(4.3.3)
升级Firebase Messaging(20.1.3)的版本
你也可以尝试添加你在帖子中提到的disableVersionCheck,以防你还没有添加。
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9'
crashlytics唯一的依赖就是为我工作
对于扩展调试信息,从命令行执行Gradle,使用。/gradlew--info:app:assembleDebug查看工件的dep endency路径。此错误消息来自google-services Gradle插件,在https://github.com/google/play-services-plugins上报告问题,并通过向build.Gradle文件添加“GoogleServices{di
我有一个应用程序运行良好,但今天它在构建项目时出现了错误。我花了一整天的时间,尝试了太多来自stack的解决方案。什么都没用。 我有以下应用程序- build.gradle是 在建筑项目上,我遇到了这个错误 错误:在项目“app”中,已解析的Google Play services库依赖于另一个精确版本(例如“[20.0.2]”),但未解析为该版本。库显示的行为未知。 依赖项失败:com。谷歌。f
当我试图编译我的项目时,我得到了以下错误 错误:在“应用程序”项目中,已解决的Google Play services库依赖项依赖于另一个精确版本(例如“[15.0.1]”),但未解决到该版本。库显示的行为将是未知的。 Build.Gradle(项目) 我得到以下错误 错误:在“应用程序”项目中,已解决的Google Play services库依赖项依赖于另一个精确版本(例如“[15.0.1]”
本文向大家介绍gradle 依赖于另一个Gradle项目,包括了gradle 依赖于另一个Gradle项目的使用技巧和注意事项,需要的朋友参考一下 示例 对于多项目gradle构建,有时可能需要依赖构建中的另一个项目。为此,请在项目的依赖项中输入以下内容: ':OtherProject'从目录结构的根引用的项目gradle路径在哪里。 为了':OtherProject'在build.gradle文
这是我在编译android应用程序时遇到的错误。我看了很多关于这个问题的问题,并尝试更新我的SDK,重新打开Android Studio和chane的:,但什么都不起作用,Android Studio仍然抱怨他无法解决这个问题。有人知道为什么会这样吗?这是我所有的分级文件:
我找了一段时间如何找出库之间的依赖关系,但我没有找到任何东西。例如。在我的大楼里Gradle是 我如何知道我可以使用什么版本?(例如,com.android.support:support-annotations:25.4.0是否与com.android.support:Appcompat-v7:25.4.0兼容,等等?)有文件记载吗?例如,Android Studio告诉我,我可以使用newer