android - 为什么新的 Firebase Crashlytics(无 Fabric)无法在 Android 中运行?
问题描述
每个人都在建议答案之前阅读并更新自己(不要给 Fabric 建议):https ://firebase.google.com/docs/crashlytics/upgrade-sdk?platform=android
我的应用程序已在 firebase 注册。
我设置了所有内容,但没有更改清单和应用程序类中的任何内容。
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
android {
/* compileSdkVersion 'android-R'*/
compileSdkVersion 29
defaultConfig {
applicationId "com.xxxxxxxxxxxx"
minSdkVersion 21
/* targetSdkVersion 'R'*/
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
checkReleaseBuilds true
abortOnError false
}
buildTypes {
release {
minifyEnabled true
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
customDebugType {
debuggable true
}
}
dataBinding {
enabled = true
}
useLibrary 'org.apache.http.legacy'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.1.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
//Lifecycle components
def life_versions = "2.2.0-beta01"
implementation "android.arch.lifecycle:extensions:$life_versions"
annotationProcessor "android.arch.lifecycle:compiler:$life_versions"
//Server API Integration
implementation 'com.squareup.retrofit2:retrofit:2.7.1'
implementation 'com.squareup.retrofit2:converter-gson:2.7.1'
implementation "com.squareup.okhttp3:logging-interceptor:4.4.0"
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.7.1'
//For QR Scanner
implementation 'com.google.android.gms:play-services-vision:19.0.0'
//Show DB on Chrome
implementation 'com.facebook.stetho:stetho:1.5.1'
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
implementation 'com.github.sundeepk:compact-calendar-view:1.7.8'
implementation 'de.hdodenhof:circleimageview:3.1.0'
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.google.firebase:firebase-analytics:17.2.3'
implementation 'com.google.firebase:firebase-crashlytics:17.0.0-beta01'
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.0-beta03'
classpath 'com.google.gms:google-services:4.3.3'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0-beta02'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
它不起作用,我试图让我的应用程序崩溃并在 firebase 控制台上进行检查
更新:
在 Firebase 控制台中,
To see this data, make sure your app has Google Analytics for Firebase and the latest Fabric SDK or Firebase Crashlytics SDK.
但我已经添加了
解决方案
检查你的清单。在应用程序标签中,检查此属性,
tool:node="replace"
删除此属性。
推荐阅读
- r - R 中带有 frbs 包的模糊逻辑 Mamdani 的隶属函数下标越界
- r - 以 R 为条件的 excel
- sql - 递归 CTE 以找到所有子级父级和深度的总计
- windows - 使用 Powershell 在 Windows 资源管理器中驱动高级搜索 - 如何通过管道将 Out-GridView 传输到 Windows 资源管理器?
- redux - Redux thunk 返回一个承诺而不是一个已解决的值
- python - 根据多列聚合函数的条件结果计算唯一记录
- c# - 系统生成数组
- gpu - GRAFANA 中的英特尔 GPU 利用率统计数据
- javascript - 如何为对象添加属性?(不能添加属性 x,对象在 x 处不可扩展)
- javascript - Formik InitialValues 不会更改为 Form React Native 的状态定义值