[英]how say to proguard not obfuscate class and method names when exception occured?
for exception handling, I put try-catch in all methods of my application and in the catch I send stackTrace of exception to server to find out which class and method has an exception. 对于异常处理,我将try-catch放入应用程序的所有方法中,并在catch中将异常的stackTrace发送到服务器,以找出哪个类和方法具有异常。 when I use proguard, class and method names changes and I can't find the exception point, how can I use proguard and also have information about exceptions?
当我使用proguard时,类和方法名称会发生变化,并且找不到异常点,那么我该如何使用proguard并获得有关异常的信息?
To Decode obfuscated stack traces you need the mapping.txt that Proguard generate after obfuscation. 要解码混淆后的堆栈跟踪,您需要混淆后Proguard生成的mapping.txt。
Here you can find more information: 在这里您可以找到更多信息:
http://developer.android.com/tools/help/proguard.html#decoding http://developer.android.com/tools/help/proguard.html#decoding
Mattia is right but it's kind of annoying to implement. Mattia是正确的,但实施起来有点烦人。 The only tool i'm aware of that does that easily for you is crashlytics
我知道的唯一可以为您轻松做到的工具是crashlytics
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.