i have a website that uses wordpress. recently i bought a push notifications plug-in from delite studios and i am makink a simple app to show my website and get push. i am working on the android version now and i have a problem i need help with. i did everything in their website and my app crashes when it tries to get the token for the push and register. their website: enter link description here the errors i get when app is runing and crashes:
05-06 13:31:47.188 30755-30755/com.example.adivizgan.paotiptipon E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.adivizgan.paotiptipon, PID: 30755 java.lang.NoClassDefFoundError: Failed resolution of: Lcz/msebera/android/httpclient/conn/ssl/SSLSocketFactory; at com.loopj.android.http.AsyncHttpClient.getDefaultSchemeRegistry(AsyncHttpClient.java:301) at com.loopj.android.http.AsyncHttpClient.(AsyncHttpClient.java:177) at com.loopj.android.http.AsyncHttpClient.(AsyncHttpClient.java:147) at com.delitestudio.pushnotifications.PushNotifications$a.(Unknown Source) at com.delitestudio.pushnotifications.PushNotifications.(Unknown Source) at com.example.adivizgan.paotiptipon.MainActivity.onCreate(MainActivity.java:51) at android.app.Activity.performCreate(Activity.java:6237) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.ClassNotFoundException: Didn't find class "cz.msebera.android.httpclient.conn.ssl.SSLSocketFactory" on path: DexPathList[[dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-support-annotations-23.3.0_b74eddbf01afa0360db2d49fa02d02681b09f71e-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-internal_impl-23.3.0_5059828063a8b938b7ccae4d8e7536f163bad2c8-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-com.google.android.gms-play-services-measurement-8.4.0_ee27c2e0c42dd8b8a25bf10138b8ff3f3d46612d-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-com.google.android.gms-play-services-gcm-8.4.0_bf5e5fa3fda02a0cda4662dd52635b00651c948f-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-com.google.android.gms-play-services-basement-8.4.0_fa2e6972ba1e97055d0a32e6f5152f5bd3df6e78-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-com.google.android.gms-play-services-base-8.4.0_9ee984d1ade53b051729ef5556a311fb323d000c-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-com.android.support-support-vector-drawable-23.3.0_34841d63f017ba74e1f172bafeaea493dc54afd9-classes.dex", dex file "/data/data/com.example.adivizgan.paotiptipon/files/instant-run/dex/slice-com.android.support-support-v4-23.3.0_07269f5
note that the push notificatios library is dependent on another library that called: Android Asynchronous Http Client, which i saw is making the errors here. please help me!!! thanks in advance.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire