SDK addon sample problem.

39 views
Skip to first unread message

dnak

unread,
Jan 18, 2010, 9:18:40 AM1/18/10
to android-porting
Hi, all.

I found vendor/sample, and I tried SDK addon sample.
I created SDK addon sample, below commands.

$ make sdk
$ make PRODUCT-sample_addon-sdk_addon

And, I tried to create application using created sdk_addon sample.
But, Android threw NoClassDefFoundError exception which was for
com.example.android.platform_library.PlatformLibrary.

What is happen?
Are there anyone who have same problem?

Below is part of my source code.
------------------------
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);

com.example.android.platform_library.PlatformLibrary p = new
com.example.android.platform_library.PlatformLibrary();
int n = p.getInt(true);
com.android.util.Log.i("", Integer.toString(n));
}
------------------------

My evironment is below.
OS : ubuntu 8.04
mydroid : Eclair

Regards.

dnak

unread,
Jan 19, 2010, 10:55:35 AM1/19/10
to android-porting
Hi, all.

I resolved this problem.
I added below code to AndroidManifest.xml.

<used-library ndroid:name="com.example.android.platform_library"/>

Android did not throw NoClassDefFoundError exception.

Regards.

Reply all
Reply to author
Forward
0 new messages