当前崩溃报告显示为
异常java.lang.nullpointerException:
com.temp.app.helper.convertToString(helper.java:(此处无行号))
com.temp.app.fragment.fragment.fragmentEntername$6.run(fragmentEntername.java:(此处无行号))
android.os.handler.handleCallback lang.reflect.method.invokenative(method.java)
java.lang.reflect.method.invoke(method.java:515)
com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1291)
com.android.internal.os.zygoteinit.main(zygoteinit.java:1107)
dalvik.system.nativestart.main(nativestart.java)
dalvik.system.nativestart.java)
但应该像
异常java.lang.nullpointerException:
com.temp.app.helper.convertToString(Helper.java:25)
com.temp.app.fragment.fragmentEntername$6.run(fragmentEntername.java:15)
android.os.handler.handleCallback enative(method.java)
java.lang.reflect.method.invoke(method.java:515)
com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1291)
com.android.internal.os.zygoteinit.main(zygoteinit.java:1107)
dalvik.system.nativestart.main(nativestart.java)
dalvik.system.nativestart.java)
我使用的是sdk\tools\proguard\proguard-android.txt中的默认proguard-android.txt
配置文件的内容为
# This is a configuration file for ProGuard.
# http://proguard.sourceforge.net/index.html#manual/usage.html
#
# Starting with version 2.2 of the Android plugin for Gradle, these files are no longer used. Newer
# versions are distributed with the plugin and unpacked at build time. Files in this directory are
# no longer maintained.
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose
# Optimization is turned off by default. Dex does not like code run
# through the ProGuard optimize and preverify steps (and performs some
# of these optimizations on its own).
-dontoptimize
-dontpreverify
# Note that if you want to enable optimization, you cannot just
# include optimization flags in your own project configuration file;
# instead you will need to point to the
# "proguard-android-optimize.txt" file instead of this one from your
# project.properties file.
-keepattributes *Annotation*
-keep public class com.google.vending.licensing.ILicensingService
-keep public class com.android.vending.licensing.ILicensingService
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames class * {
native <methods>;
}
# keep setters in Views so that animations can still work.
# see http://proguard.sourceforge.net/manual/examples.html#beans
-keepclassmembers public class * extends android.view.View {
void set*(***);
*** get*();
}
# We want to keep methods in Activity that could be used in the XML attribute onClick
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keepclassmembers class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator CREATOR;
}
-keepclassmembers class **.R$* {
public static <fields>;
}
# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version. We know about them, and they are safe.
-dontwarn android.support.**
# Understand the @Keep support annotation.
-keep class android.support.annotation.Keep
-keep @android.support.annotation.Keep class * {*;}
-keepclasseswithmembers class * {
@android.support.annotation.Keep <methods>;
}
-keepclasseswithmembers class * {
@android.support.annotation.Keep <fields>;
}
-keepclasseswithmembers class * {
@android.support.annotation.Keep <init>(...);
}
将此添加到proguard配置中,它将在Firebase中添加行号:
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
我已经成功地将Firebase集成到我的项目中 (身份验证和存储工作很好),但是在简单地集成了Crashlytics并故意(而不是故意)崩溃我的应用程序之后:-没有崩溃报告出现在崩溃仪表板中。 我确实在logcat: d/firebaseApp:com.google.Firebase.crash.firebaseCrash不链接。跳过初始化 i/CrashlyticScore:Crashlytic
有人尝试过新的火力点坠毁报告吗?
最近,我们将应用程序从Fabric迁移到Firebase Crashlytics和Firebase Analytics。在android中,在遵循谷歌文档之后,一切都像一个魅力一样运行。问题是,在iOS中,我们没有得到关于Firebase Crashlytics的报告(在Firebase Analytics上工作得很好),但遵循了相同的文档之后。 路径: Dev Google Service In
Crashlytics在没有选择输入报告的情况下工作得很好。但一旦我根据教程设置了选择输入报告,它就会停止报告任何内容。 具体地说,我在中添加了以下内容 我注意到这一行很有趣:这可能是问题的原因。但我找不到任何关于这篇日志的信息。
我正在android应用程序中使用firebase。几天后,firebase突然停止向主firebase控制台报告崩溃。我得到以下错误每当任何崩溃发生在应用程序。 我的分级文件如下所示 我已经尝试更新api密钥,但我没有得到任何更新它。提前致谢
应用程序分级: 请帮我解决这个问题。