首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >为什么向android项目添加Connecty多维数据集会失败?

为什么向android项目添加Connecty多维数据集会失败?
EN

Stack Overflow用户
提问于 2020-02-03 09:25:43
回答 1查看 210关注 0票数 0

我正在将Connecty多维数据集源代码添加到我的Android项目中,如下所示:Connectycube Android

我在配置中做了如下的更改。

  • 整个项目的build.gradle //顶级构建文件,您可以在其中添加所有子项目/模块共有的配置选项。buildscript { ext.kotlin_version = '1.3.61‘存储库{ google() jcenter() maven { url "https://github.com/ConnectyCube/connectycube-android-sdk-releases/raw/master/“}}依赖项{ classpath 'com.android.tools.build:gradle:3.5.3’classpath ext.kotlin_version // NOTE:不要将应用程序依赖项放在这里;它们属于//在单个模块build.gradle file}allproject{存储库{ google() jcenter() maven { url "https://github.com/ConnectyCube/connectycube-android-sdk-releases/raw/master/“}}任务干净(类型:删除){删除rootProject.buildDir }
  • 应用程序的build.gradle 应用插件:'com.android.application‘应用插件:'kotlin- android’应用插件:‘kotlin-android-扩展’android{ compileSdkVersion 28 defaultConfig { applicationId "com.example.app2“minSdkVersion 26 targetSdkVersion 28 versionCode 1 versionName "1.0”testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner“} buildTypes { minifyEnabled false proguardFiles testInstrumentationRunner}buildTypes{minifyEnabled false proguardFiles versionName}依赖项{ fileTree(dir:'libs‘),包括:'*.jar')实现'androidx.constraintlayout:constraintlayout:1.1.3‘实现'androidx.appcompat:appcompat:1.1.0’implementation 'androidx.core:core-ktx:1.1.0‘’androidx.constraintlayout:constraintlayout:1.1.3‘implementation("com.squareup.okhttp3:okhttp:4.3.1") testImplementation("com.squareup.okhttp3:mockwebserver:4.3.1")实现'com.fasterxml.jackson.core:jackson-core:2.10.2‘implementation 'com.fasterxml.jackson.core:jackson-annotations:2.10.2’implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.2‘implementation("ru.gildor.coroutines:kotlin-coroutines-okhttp:1.0") implementation’com.github.kittinunf.Fuel:fuel:2.2.1 //Core package implementation‘com.github。燃料:燃料-Android:2.2.1‘/Android实现’com.github.kittinunf.燃料:燃料- Gson :2.2.1‘//燃料Gson实现'com.google.code.gson:gson:2.8.6’//Gson implementation "com.connectycube:connectycube-android-sdk-chat:1.8.1“implementation "com.connectycube:connectycube-android-sdk-videochat:1.8.1”implementation "com.connectycube“:connecty多维数据集-android存储:1.8.1“实现"com.connectycube:connectycube-android-sdk-pushnotifications:1.8.1”testImplementation 'junit:junit:4.13‘androidTestImplementation 'androidx.test.ext:junit:1.1.1’androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0‘}

这个项目进展顺利。然而,当运行该应用程序时,应用程序立即崩溃,我现在得到了以下错误,而在此之前它还可以:

代码语言:javascript
运行
复制
java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/data/app/com.example.app2-GGFjPULxWAFkxuGr2o1VpA==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.app2-GGFjPULxWAFkxuGr2o1VpA==/lib/x86, /data/app/com.example.app-GGFjPULxWAFkxuGr2o1VpA==/base.apk!/lib/x86, /system/lib, /vendor/lib]]
EN

回答 1

Stack Overflow用户

发布于 2020-02-03 11:39:26

使用Galaxy 27作为模拟器对其进行了修复。显然,Nexus5x上的API 26并没有与之协同工作。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60036301

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档