在我的应用程序上成功使用proguard之后,它在我的移动设备上启动时崩溃。
我使用Proguard的标准配置:${sdk.dir}/tools/proguard/proguard-android.txt
logcat这样说:E/AndroidRuntime(13441): at packagename.q.doInBackground(Unknown Source)
然后一些应用程序崩溃错误等。
为什么在后台找不到我的来源?这是一个简单的异步任务。
有人能帮我吗?
编辑:整个日志:
I/ActivityManager( 1604): Start proc myPackageName for activity myPackageName/.MainActivity: pid=13961 uid=10147 gids={3003}I/ActivityManager( 1604): Displayed myPackageName/.MainActivity: +744ms (total +1m41s749ms)E/AndroidRuntime(13961): at myPackageName.q.doInBackground(Unknown Source)E/EmbeddedLogger( 1604): App crashed! Process: myPackageNameE/EmbeddedLogger( 1604): App crashed! Package: myPackageName v4 (1.2.1)E/EmbeddedLogger( 1604): Application Label: XxXW/ActivityManager( 1604): Force finishing activity myPackageName/.MainActivityE/WindowManager(13961): Activity myPackageName.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40dcbed8 that was originally added hereE/WindowManager(13961): android.view.WindowLeaked: Activity myPackageName.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40dcbed8 that was originally added hereE/WindowManager(13961): at myPackageName.MainActivity.b(Unknown Source)E/WindowManager(13961): at myPackageName.l.a(Unknown Source)I/ActivityManager( 1604): Process myPackageName (pid 13961) has died.

最佳答案

我解决了。问题是我在这个doInBackground
刚刚添加
#Keep jsoup-keep public class org.jsoup.** {public *;}
对配置和它的工作很好,谢谢你的帮助

08-17 16:21