Hi everyone, 

I am getting an exception with one of the third party library I used in my 
android application. Everything works fine when I generate a debug build 
for local testing. But after uploading my signed apk to google play console 
and downloading the live version of my application the application crashes 
and the exception I am getting in the crash logs suggests that there is a 
Runtime exception with a dependency that I have used in my project called 
SweetAlert. It is maintained by a person called F0ris on github. 

App crashes on a button click, the normal flow is when this button is 
clicked an alert dialog appears for few seconds at the time of api calling 
and after api calling is done it disappears. But due to the exception my 
application get crashed on the button click.

I have tried updating the library to the latest version available, but no 
success still getting same exception.

This is the dependency I am using:   
*'com.github.f0ris.sweetalert:library:1.6.2'*

I am posting the occurred exception log here, please go through it and 
suggest what could be done to resolve the exception:

java.lang.RuntimeException: 
  at cn.pedant.SweetAlert.OptAnimationLoader.createAnimationFromXml 
(OptAnimationLoader.java:201)
  at cn.pedant.SweetAlert.OptAnimationLoader.createAnimationFromXml 
(OptAnimationLoader.java:126)
  at cn.pedant.SweetAlert.OptAnimationLoader.createAnimationFromXml 
(OptAnimationLoader.java)
  at cn.pedant.SweetAlert.OptAnimationLoader.loadAnimation 
(OptAnimationLoader.java)
  at cn.pedant.SweetAlert.SweetAlertDialog.<init> (SweetAlertDialog.java:53)
  at cn.pedant.SweetAlert.ProgressHelper.getProgressHelper 
(ProgressHelper.java:14)
  or                     .setBarColor (ProgressHelper.java:14)
  or                     .showLoading (ProgressHelper.java:14)
  at butterknife.internal.DebouncingOnClickListener.onClick 
(DebouncingOnClickListener.java:14)
  at android.view.View.performClick (View.java:7575)
  at android.view.View.performClickInternal (View.java:7548)
  at android.view.View.access$3600 (View.java:837)
  at android.view.View$PerformClick.run (View.java:28892)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:236)
  at android.app.ActivityThread.main (ActivityThread.java:8043)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run 
(RuntimeInit.java:620)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1011)

When I am testing it in local environment by generating a build from 
android studio it everything works fine. It is at the time of using release 
apk (live on play store) I am getting the above RuntimeException.

If anyone have any solution regarding this exception, it will be a great 
help. Thank you for your time in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a56c3ba4-a56e-4a8d-8110-a4622d11c61bn%40googlegroups.com.

Reply via email to