3

I've written a sample app in which I'm getting data from localhost... created this app a year ago and last I used last week or max to max 2 weeks ago, and app was doing good, everything as per my expectation

UPDATE

Resolved this issue by disabling proguard, but I want to enable like, I've enabled earlier

Suddenly, app has stopped fetching data from localhost, can't see more, but this is what I found in Log:

2020-06-23 15:25:51.666 3751-3751/? W/RefBase: CallStack::getCurrentInternal not linked, returning null
2020-06-23 15:25:51.666 3751-3751/? W/RefBase: CallStack::logStackInternal not linked
2020-06-23 15:25:51.687 27221-27221/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1631 android.content.ContextWrapper.startService:683 android.content.ContextWrapper.startService:683 com.sec.android.diagmonagent.sa.receiver.CFLogReceiver.sendCFLog:21 com.sec.android.diagmonagent.sa.receiver.CFLogReceiver.onReceive:13 
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err: java.lang.RuntimeException: stub
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err:     at c.e.b.a.<init>(:36)
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err:     at com.example.myapp.UserInfoActivity$e.<init>(:362)
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err:     at com.example.myapp.UserInfoActivity.onCreate(:49)
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err:     at android.app.Activity.performCreate(Activity.java:7955)
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err:     at android.app.Activity.performCreate(Activity.java:7944)
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
2020-06-23 15:25:51.705 19718-19718/com.example.myapp W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3423)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3595)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err:     at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err:     at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err:     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2147)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:107)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err:     at android.os.Looper.loop(Looper.java:237)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:7807)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
2020-06-23 15:25:51.706 19718-19718/com.example.myapp W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1047)
Android
  • 1,529
  • 1
  • 12
  • 27
  • 1
    It would be easier to debug if you could share your code so that we could see what causes the error actually. However, this may be relevant to you https://stackoverflow.com/questions/16013787/using-sendbroadcast-in-a-system-app/18224021#18224021 . – Kartik Ohri Jun 25 '20 at 13:44
  • Maybe this will help: https://stackoverflow.com/questions/30538640/javax-net-ssl-sslexception-read-error-ssl-0x9524b800-i-o-error-during-system . Your `ContextImpl: Calling a method in the system process without a qualified user` is just warning and you can ignore that. This is real problem: `java.lang.RuntimeException: stub`. And the topic I've shared with you is according the second exception: `javax.net.ssl.SSLException: Read error: ssl=0x6fb34f6008: I/O error during system call, Connection reset by peer`. Hope this helps somehow. – SkypeDogg Jun 25 '20 at 13:53
  • Yes, I know. But I don't know the solution – Android Jun 25 '20 at 13:58
  • 1
    Without seeing code of UserInfoActivity its impossible to help. – Ridcully Jun 28 '20 at 03:33

1 Answers1

2

So basically, your classes, fields are being renamed during obfuscation hence leading to this error. The easiest way to solve this is to add the full class name of the class you don't wish to be obfuscated in the pro guard rules file. Refer: ProGuard - Obfuscating apk causing error

rufw91
  • 157
  • 2
  • 8