Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (684)
Games in Android Showcase (196)
games submitted by our members
Games in WIP (752)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [Kryonet] NoClassDefFoundError with Kryonet  (Read 2844 times)
0 Members and 1 Guest are viewing this topic.
Offline cronosDev

Senior Newbie





« Posted 2013-05-26 14:37:29 »

Hello Community,

I have a mixed problem with Kryonet and Android. I try to connect to a server with a Kryo Client in a Android Service. But if I try to create a simple Client , I get following Exception.

05-26 16:23:07.722: E/AndroidRuntime(24686): FATAL EXCEPTION: IntentService[SendSMSService]
05-26 16:23:07.722: E/AndroidRuntime(24686): java.lang.NoClassDefFoundError: com.esotericsoftware.kryonet.Client
05-26 16:23:07.722: E/AndroidRuntime(24686):    at cronos.dev.smsforward.smartphone.SendSMSService.onHandleIntent(SendSMSService.java:40)
05-26 16:23:07.722: E/AndroidRuntime(24686):    at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
05-26 16:23:07.722: E/AndroidRuntime(24686):    at android.os.Handler.dispatchMessage(Handler.java:99)
05-26 16:23:07.722: E/AndroidRuntime(24686):    at android.os.Looper.loop(Looper.java:137)
05-26 16:23:07.722: E/AndroidRuntime(24686):    at android.os.HandlerThread.run(HandlerThread.java:60)
05-26 16:23:08.783: E/ActivityThread(24686): Activity cronos.dev.smsforward.smartphone.SMSForwardSmartphone has leaked IntentReceiver cronos.dev.smsforward.smartphone.SmsReceiver@420ae3c0 that was originally registered here. Are you missing a call to unregisterReceiver()?
05-26 16:23:08.783: E/ActivityThread(24686): android.app.IntentReceiverLeaked: Activity cronos.dev.smsforward.smartphone.SMSForwardSmartphone has leaked IntentReceiver cronos.dev.smsforward.smartphone.SmsReceiver@420ae3c0 that was originally registered here. Are you missing a call to unregisterReceiver()?
05-26 16:23:08.783: E/ActivityThread(24686):    at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:795)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:596)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1316)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.app.ContextImpl.registerReceiver(ContextImpl.java:1296)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.app.ContextImpl.registerReceiver(ContextImpl.java:1290)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:423)
05-26 16:23:08.783: E/ActivityThread(24686):    at cronos.dev.smsforward.smartphone.SMSForwardSmartphone.onClick(SMSForwardSmartphone.java:79)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.view.View.performClick(View.java:4204)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.view.View$PerformClick.run(View.java:17355)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.os.Handler.handleCallback(Handler.java:725)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.os.Handler.dispatchMessage(Handler.java:92)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.os.Looper.loop(Looper.java:137)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.app.ActivityThread.main(ActivityThread.java:5041)
05-26 16:23:08.783: E/ActivityThread(24686):    at java.lang.reflect.Method.invokeNative(Native Method)
05-26 16:23:08.783: E/ActivityThread(24686):    at java.lang.reflect.Method.invoke(Method.java:511)
05-26 16:23:08.783: E/ActivityThread(24686):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-26 16:23:08.783: E/ActivityThread(24686):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-26 16:23:08.783: E/ActivityThread(24686):    at dalvik.system.NativeStart.main(Native Method)

If I remove every Kryonet code, the App runs perfect. Can somebody help me?


Offline Nate

« JGO Bitwise Duke »


Medals: 167
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #1 - Posted 2013-05-26 15:10:15 »

Check the KryoNet JAR on the Android project export settings.

Offline cronosDev

Senior Newbie





« Reply #2 - Posted 2013-05-26 15:57:34 »

Yes, I allready done. Do you have antoher idea?
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 
orrenravid (238 views)
2016-07-16 03:57:23

theagentd (308 views)
2016-07-11 14:28:54

Hydroque (394 views)
2016-07-06 05:56:57

Hydroque (551 views)
2016-07-03 08:52:54

GrandCastle (415 views)
2016-07-01 09:13:47

GrandCastle (408 views)
2016-07-01 09:09:45

CopyableCougar4 (462 views)
2016-06-25 16:56:52

Hydroque (430 views)
2016-06-22 02:17:53

SwampChicken (395 views)
2016-06-20 13:22:57

SwampChicken (308 views)
2016-06-20 13:22:49
Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42

FPS Camera Tutorial
by Hydroque
2016-05-22 05:40:58

Website offering 3D Models specifically for games for free
by vusman
2016-05-18 17:23:09

Website offering 3D Models specifically for games for free
by vusman
2016-05-09 08:50:56

Website offering 3D Models specifically for games for free
by vusman
2016-05-06 11:10:21

Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!