Open Parsoa opened 7 years ago
This issue appeared because of different versions of okhttp. Retrofit has 3.8.1, but phoenix has 3.6.0 There are two ways to solve this problem right now:
Hello
i had facing same warning
W/Java7Support: Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 support added
Tried solution --->I have updated java 1.7 to 1.8 in ubuntu os
--->changed java version in app level gradle
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
and Fork phoenix and update version of okhttp3 from 3.6.0 to 3.10.0
but still getting this warning and i am not able to do socket connection It would be helpful to me if any one had faced same issue and help to solve this issue
Thanks in advance
I don't if this is really an issue with the library or a mistake on my end so I post here anyway.
This is my build configuration:
I get the following error as soon as any socket methods are invoked:
java.lang.NoClassDefFoundError: org.phoenixframework.channels.Socket$PhoenixWSListener E at org.phoenixframework.channels.Socket.<init>(Socket.java:167) E at org.phoenixframework.channels.Socket.<init>(Socket.java:170) E at com.sandzar.paywand.sockets.SocketService.initiateSocketConnection(SocketService.java:66) E at com.sandzar.paywand.sockets.SocketService.onStartCommand(SocketService.java:50) E at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3010) E at android.app.ActivityThread.access$2200(ActivityThread.java:150) E at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1442) E at android.os.Handler.dispatchMessage(Handler.java:102) E at android.os.Looper.loop(Looper.java:148) E at android.app.ActivityThread.main(ActivityThread.java:5417) E at java.lang.reflect.Method.invoke(Native Method) E at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:764) E at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) Process I Sending signal. PID: 4379 SIG: 9
The is the portion of code that causes the error:
Here is some extra output from the console: