Sign In Register

How can we help you today?

Start a new topic
Answered

NoClassDefFoundError in Android Plugin

Im developing an Android Plugin for Unity3D that uses GS Android Studio SDK. After calling the inicialisation:


GSAndroidPlatform.initialise(myContext, "xxx", "xxx",null, true, true);

 

I get anerror NoClassDefFoundError calling these functions: 


GSAndroidPlatform.gs().stop();

GSAndroidPlatform.gs().start();

 

Caused by: java.lang.NoClassDefFoundError: com.gamesparks.sdk.GSConnection

 

                                                                     at com.gamesparks.sdk.GS.NewConnection(GS.java:208)

                                                                     at com.gamesparks.sdk.GS.ConnectIfRequired(GS.java:196)

                                                                     at com.gamesparks.sdk.GS.processQueues(GS.java:174)

                                                                     at com.gamesparks.sdk.GS$GSWorker.run(GS.java:561)

                                                                     at java.lang.Thread.run(Thread.java:818)

 

I´ve included in the Plugins/Android/ folder


* gamesparks-java-sdk-0.3.0-20170217.162721-1.jar

* gamesparks-android-client-sdk-0.3.0.aar


And in the libs folders of the Android Studio.


* gamesparks-java-sdk-0.3.0-20170217.162721-1.jar


But the class GSConnection is still missed. Any suggestion? 

 

Thank u!


image


image




Best Answer

Hello,

Usually the our Android SDK is managed by Maven/Gradle system and therefore they download a pair of required libraries, namely json-simple-1.1.1.jar and nv-websocket-client-1.20.jar. In this uncommon case, you will need to include those two files into your Unity project - I also suppose you export the Android project with it. They can be found easily over Internet.


Giuseppe 

1 Comment

Answer

Hello,

Usually the our Android SDK is managed by Maven/Gradle system and therefore they download a pair of required libraries, namely json-simple-1.1.1.jar and nv-websocket-client-1.20.jar. In this uncommon case, you will need to include those two files into your Unity project - I also suppose you export the Android project with it. They can be found easily over Internet.


Giuseppe 

Login to post a comment