Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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 2088 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 Kernel


Medals: 147
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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

BurntPizza (25 views)
2014-09-19 03:14:18

Dwinin (39 views)
2014-09-12 09:08:26

Norakomi (68 views)
2014-09-10 13:57:51

TehJavaDev (93 views)
2014-09-10 06:39:09

Tekkerue (47 views)
2014-09-09 02:24:56

mitcheeb (68 views)
2014-09-08 06:06:29

BurntPizza (51 views)
2014-09-07 01:13:42

Longarmx (38 views)
2014-09-07 01:12:14

Longarmx (44 views)
2014-09-07 01:11:22

Longarmx (40 views)
2014-09-07 01:10:19
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!