question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ChatSDK activation fails with version 4.7.2-7

See original GitHub issue

ChatSDK activation fails

  1. **Is the bug present in the demo Chat SDK project? no

  2. **What modifications have you made to the Chat SDK? nothing

  3. **Android Version: 8.0 , Chat sdk : 4.7.2-7

  4. **Steps taken to reproduce the problem:

 Context context = getApplicationContext();
 try { Configuration.Builder builder = new Configuration.Builder(context);
        builder.firebaseRootPath("testnownow");
            ChatSDK.initialize(builder.build(), new FirebaseNetworkAdapter(), new BaseInterfaceAdapter(context));
  1. **Expected result: chat sdk activation success

  2. **Actual result:

I/zygote64: Rejecting re-init on previously-failed class java.lang.Class<org.greenrobot.greendao.database.DatabaseOpenHelper$EncryptedHelper>: java.lang.NoClassDefFoundError: Failed resolution of: Lnet/sqlcipher/database/SQLiteOpenHelper;
        at void co.chatsdk.core.dao.DaoCore.openDB() (DaoCore.java:81)
        at void co.chatsdk.core.dao.DaoCore.init(android.content.Context) (DaoCore.java:65)
        at co.chatsdk.core.session.ChatSDK co.chatsdk.core.session.ChatSDK.initialize(co.chatsdk.core.session.Configuration, co.chatsdk.core.base.BaseNetworkAdapter, co.chatsdk.core.interfaces.InterfaceAdapter) (ChatSDK.java:88)
        at void com.adam.nownow.screens.MainActivity.chatSDKactivation()
...
 Caused by: java.lang.ClassNotFoundException: Didn't find class "net.sqlcipher.database.SQLiteOpenHelper" on path: DexPathList[[zip file "/data/app/com.adam.nownow-IWyygazDq0HkH-_xVoQiyQ==/base.apk", zip file "/data/app/com.adam.nownow-IWyygazDq0HkH-_xVoQiyQ==/split_lib_dependencies_apk.apk", zip file "/data/app/com.adam.nownow-IWyygazDq0HkH-_xVoQiyQ==/split_lib_resources_apk.apk", zip file "/data/app/com.adam.nownow-IWyygazDq0HkH-_xVoQiyQ==/split_lib_slice_0_apk.apk", zip file "/data/app/com.adam.nownow-IWyygazDq0HkH-_xVoQiyQ==/split_lib_slice_1_apk.apk", zip file "/data/app/com.adam.nownow-IWyygazDq0HkH-_xVoQiyQ==/split_lib_slice_2_apk.apk", zip file "/data/app/com.adam.nownow-IWyygazDq0HkH-_xVoQiyQ==/split_lib_slice_3_apk.apk", zip file "/data/app/com.adam.nownow-IWyygazDq0HkH-_xVoQiyQ==/split_lib_slice_4_apk.apk", zip file "/data/app/com.adam.nownow-IWyygazDq0HkH-_xVoQiyQ==/split_lib_slice_5_apk.apk", zip file "/data/app/com.adam.nownow-IWyygazDq0HkH-_xVoQiyQ==/split_lib_slice_6_apk.apk", zip file "/data/
        at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aymenhscommented, May 1, 2019

What I did is to disable instant run. Because even with my dex parameters which I tweaked in every possible aspects I always had a problem. see screenshot: https://ibb.co/gj2Zh3M

I still had other dex issues but with a material library , not a blocking one

0reactions
bensmileycommented, Apr 23, 2019

@aymenhs could you post your solution? I also experienced this issue but the only solution I could find was to add a dependency to the encryption library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If you can't turn on or sign in to iMessage or FaceTime
If you see an error message during activation, follow these steps. When activating iMessage or FaceTime, you might see one of these messages:....
Read more >
Mobile App Messaging SDK for Android — Release Notes
Failed to detect email address in a message. SDK fails to display link preview for some of the valid links. Android Messaging SDK...
Read more >
iMessage Waiting for Activation? 4 Ways to Fix ... - YouTube
Are you experiencing an iMessage activation unsuccessful or FaceTime activation error message? I will teach you how to activate iMessage and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found