mob*_*Dev 9 android proguard android-proguard
以下是来自proguard-rules.pro的几行
-keepattributes *Annotation*
-keepattributes Signature
-keepattributes InnerClasses,EnclosingMethod
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
-keep public class * extends java.lang.Exception
-dontwarn org.apache.http.**
Run Code Online (Sandbox Code Playgroud)
Logcat输出(错误行号列为1133,而我的源文件长100行)
09-04 16:11:46.698 3827-5280/com.XX.main E/AndroidRuntime: FATAL EXCEPTION: IntentService[ActivityRecognizedTracker]
Process: com.XX.main, PID: 3827
java.lang.NullPointerException: Attempt to read from field 'double com.XX.trips.Trip.a' on a null object reference
at com.XX.ActivityRecognizedTracker.onHandleIntent(SourceFile:1133)
Run Code Online (Sandbox Code Playgroud)
我保留行号和源文件属性,但堆栈跟踪仍然是模糊的.我究竟做错了什么?
| 归档时间: |
|
| 查看次数: |
2930 次 |
| 最近记录: |