Firebase 性能 - Crashlytics
Firebase Performance - Crashlytics
我正在使用 Firebase 性能。在日志记录中不断看到它们很烦人。是哪里错了还是为什么会出现日志记录;
W/FirebaseRemoteConfig: No value of type 'FirebaseRemoteConfigValue' exists for parameter key 'fpr_session_max_duration_min'.
W/FirebaseRemoteConfig: No value of type 'FirebaseRemoteConfigValue' exists for parameter key 'fpr_enabled'.
W/FirebaseRemoteConfig: No value of type 'FirebaseRemoteConfigValue' exists for parameter key 'fpr_disabled_android_versions'.
W/FirebaseRemoteConfig: No value of type 'FirebaseRemoteConfigValue' exists for parameter key 'fpr_enabled'.
W/FirebaseRemoteConfig: No value of type 'FirebaseRemoteConfigValue' exists for parameter key 'fpr_disabled_android_versions'.
W/FirebaseRemoteConfig: No value of type 'FirebaseRemoteConfigValue' exists for parameter key 'fpr_vc_network_request_sampling_rate'.
build.gradle(模块)
apply plugin: 'com.google.firebase.firebase-perf'
implementation "com.google.firebase:firebase-analytics:$firebase.firebase_analytics"
implementation "com.google.firebase:firebase-messaging:$firebase.messaging"
implementation "com.google.firebase:firebase-auth:$firebase.auth"
implementation "com.crashlytics.sdk.android:crashlytics:$firebase.crashlytics"
implementation "com.google.firebase:firebase-firestore:$firebase.firestore"
implementation 'com.google.firebase:firebase-perf:19.0.4'
build.gradle(项目)
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
classpath 'io.fabric.tools:gradle:1.31.0'
classpath 'com.google.firebase:perf-plugin:1.3.1'
classpath 'com.google.gms:google-services:4.3.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$libraries.kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
firebase = [
firebase_analytics: '17.2.1',
messaging : '20.1.0',
auth : '19.2.0',
crashlytics : '2.10.1',
firestore : '21.3.1'
]
Firebase 性能监控在内部使用 Firebase 远程配置来处理某些事情。这是正常现象,但您无法阻止它们被记录。如果您不想在日志中看到这些消息,那么 file a feature request with Firebase support.
<meta-data
android:name="firebase_performance_logcat_enabled"
android:value="true" />
如果我在清单中删除此标签,我将看不到日志。
我正在使用 Firebase 性能。在日志记录中不断看到它们很烦人。是哪里错了还是为什么会出现日志记录;
W/FirebaseRemoteConfig: No value of type 'FirebaseRemoteConfigValue' exists for parameter key 'fpr_session_max_duration_min'.
W/FirebaseRemoteConfig: No value of type 'FirebaseRemoteConfigValue' exists for parameter key 'fpr_enabled'.
W/FirebaseRemoteConfig: No value of type 'FirebaseRemoteConfigValue' exists for parameter key 'fpr_disabled_android_versions'.
W/FirebaseRemoteConfig: No value of type 'FirebaseRemoteConfigValue' exists for parameter key 'fpr_enabled'.
W/FirebaseRemoteConfig: No value of type 'FirebaseRemoteConfigValue' exists for parameter key 'fpr_disabled_android_versions'.
W/FirebaseRemoteConfig: No value of type 'FirebaseRemoteConfigValue' exists for parameter key 'fpr_vc_network_request_sampling_rate'.
build.gradle(模块)
apply plugin: 'com.google.firebase.firebase-perf'
implementation "com.google.firebase:firebase-analytics:$firebase.firebase_analytics"
implementation "com.google.firebase:firebase-messaging:$firebase.messaging"
implementation "com.google.firebase:firebase-auth:$firebase.auth"
implementation "com.crashlytics.sdk.android:crashlytics:$firebase.crashlytics"
implementation "com.google.firebase:firebase-firestore:$firebase.firestore"
implementation 'com.google.firebase:firebase-perf:19.0.4'
build.gradle(项目)
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
classpath 'io.fabric.tools:gradle:1.31.0'
classpath 'com.google.firebase:perf-plugin:1.3.1'
classpath 'com.google.gms:google-services:4.3.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$libraries.kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
firebase = [
firebase_analytics: '17.2.1',
messaging : '20.1.0',
auth : '19.2.0',
crashlytics : '2.10.1',
firestore : '21.3.1'
]
Firebase 性能监控在内部使用 Firebase 远程配置来处理某些事情。这是正常现象,但您无法阻止它们被记录。如果您不想在日志中看到这些消息,那么 file a feature request with Firebase support.
<meta-data
android:name="firebase_performance_logcat_enabled"
android:value="true" />
如果我在清单中删除此标签,我将看不到日志。