SDK addon sample problem.

瀏覽次數:41 次
跳到第一則未讀訊息

dnak

未讀,
2010年1月18日 上午9:18:402010/1/18
收件者: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

未讀,
2010年1月19日 上午10:55:352010/1/19
收件者: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.

回覆所有人
回覆作者
轉寄
0 則新訊息