Okay, now I've sorted out the "Class not found problem".
http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17It was an ADT problem. The Dependencies change in the version 17 version. How could I know ?
This is OK but the program still crashes for another problem.
I made the Client as simple as I could. Here is my code :
package slandon.android;
import android.app.Activity;
import android.os.Bundle;
import com.esotericsoftware.kryonet.Client;
public class TestClientAndro1Activity extends Activity {
Client client;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
client = new Client();
client.start();
}
}
The error I get is :
05-11 13:40:14.578: W/dalvikvm(756): threadid=15: thread exiting with uncaught exception (group=0x4001b188)
05-11 13:40:14.578: E/AndroidRuntime(756): Uncaught handler: thread Client exiting due to uncaught exception
05-11 13:40:14.588: E/AndroidRuntime(756): java.lang.NullPointerException
05-11 13:40:14.588: E/AndroidRuntime(756): at org.apache.harmony.nio.internal.SelectorImpl.prepareChannels(SelectorImpl.java:223)
05-11 13:40:14.588: E/AndroidRuntime(756): at org.apache.harmony.nio.internal.SelectorImpl.selectInternal(SelectorImpl.java:191)
05-11 13:40:14.588: E/AndroidRuntime(756): at org.apache.harmony.nio.internal.SelectorImpl.select(SelectorImpl.java:167)
05-11 13:40:14.588: E/AndroidRuntime(756): at com.esotericsoftware.kryonet.Client.update(Client.java:240)
05-11 13:40:14.588: E/AndroidRuntime(756): at com.esotericsoftware.kryonet.Client.run(Client.java:332)
05-11 13:40:14.588: E/AndroidRuntime(756): at java.lang.Thread.run(Thread.java:1096)
05-11 13:40:14.598: I/dalvikvm(756): threadid=7: reacting to signal 3
05-11 13:40:14.618: I/dalvikvm(756): Wrote stack trace to '/data/anr/traces.txt'
05-11 13:40:22.189: I/Process(756): Sending signal. PID: 756 SIG: 9
Have you got an idea ?