How to resolve java.lang.NoClassDefFoundError UserAgentConfig $ Callbacks with Twilio

I am using sdk Twilio Client Android, but not with this error, trying to run it: -

Caused by: java.lang.NoClassDefFoundError: Class "Lcom/twilio/client/impl/useragent/config/UserAgentConfig$Callbacks;" not found 

I have twilioclient-android-1.1.2-3635733.jar, which went wrong.

What should be the order - Current order

Android 4.4.2
Android Private Libraries
Android Dependencies
Project/gen
Project/src
+4
source share
3 answers

Try the following:

project-> config build path-> order and export-> move dependent project on top

and

this error also occurs if you create an application using the Google API (for example, Maps), but run it on a device designed for the Android API.

thats it.

+2
source

Proguard i.e, minifyEnabled true build.gradle, , Proguard . , Proguard Twillio, Twilio docs:

-keep class com.twilio.** { *; }
+1

" " → " ", ART, Dalvik, . , , .

0
source

Source: https://habr.com/ru/post/1527427/


All Articles