简体   繁体   中英

Android s-Pen sdk runtime exception

I have downloaded the spen SDK along with the sample code. However when I try to build the code I am getting runtime exception as follows :

Log :

06-11 20:16:52.950: E/AndroidRuntime(542): FATAL EXCEPTION: main
06-11 20:16:52.950: E/AndroidRuntime(542): java.lang.NoClassDefFoundError: com.samsung.spensdk.SCanvasView
06-11 20:16:52.950: E/AndroidRuntime(542):  at com.samsung.spensdk.example.startup.SPen_Example_StartUp.onCreate(SPen_Example_StartUp.java:50)
06-11 20:16:52.950: E/AndroidRuntime(542):  at android.app.Activity.performCreate(Activity.java:4465)
06-11 20:16:52.950: E/AndroidRuntime(542):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)

I have followed the steps as instructed in the samsung developer site. ie I have included the libspen23.jar along with the library files (.so) in the armeabi folder and have configured the build path as well. However I am still getting the above mentioned error. Please, can anyone guide me if I am going wrong somewhere?

What I meant is that i have added the library manually

I have no idea what you mean by the term "manually".

Based on what you have written here, what you want is:

libs/
  libspen23.jar
  armeabi/
    whateverTheyCalledIt.so

and no manual modifications to the Eclipse build path (other than the "Order & Export" fix I mentioned in my comment).

If your libs/ directory has any other structure, that may not work.

Note that I have no direct experience with the S-Pen SDK (as I cannot accept their license terms).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM