3
下面是proguard-rules.proProguard的犯規保留的行號和方法名稱在堆棧跟蹤
-keepattributes *Annotation*
-keepattributes Signature
-keepattributes InnerClasses,EnclosingMethod
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
-keep public class * extends java.lang.Exception
-dontwarn org.apache.http.**
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)
我保留行號和源文件屬性,但堆棧跟蹤仍然是混淆。我究竟做錯了什麼?
謝謝!你幫助我完全符合我的需求。 –