Hi,

03-16 14:37:33.220: DEBUG/dalvikvm(2299): Trying to load lib
/data/data/com.android.HIDtest/lib/libhidport.so 0x43bc8f90
03-16 14:37:33.235: DEBUG/dalvikvm(2299): Added shared lib
/data/data/com.android.HIDtest/lib/libhidport.so 0x43bc8f90
03-16 14:37:33.240: DEBUG/dalvikvm(2299): No JNI_OnLoad found in
/data/data/com.android.HIDtest/lib/libhidport.so 0x43bc8f90

This line will come when you are trying to load* .so* file which is not
there in your *.apk* file. Could you please recheck once your
libhidport.so  file is properly built or not. And also check whether that *
.SO* present on *.apk* or not once.

Regards,
seshu


On Sat, Mar 19, 2011 at 4:06 PM, freakingtux <[email protected]>wrote:

> Hello, I am not familiar with the HID part
>
>
> On Wednesday, March 16, 2011 7:50:41 AM UTC+1, WuZhenda wrote:
>
>> I'm trying  to port usbhid about to android platform.
>> It's OK when I use c test bin file.
>>
>> but when I'm try to use ndk-build  for  java,these error displays.
>>
>> 03-16 14:37:33.220: DEBUG/dalvikvm(2299): Trying to load lib
>> /data/data/com.android.HIDtest/lib/libhidport.so 0x43bc8f90
>> 03-16 14:37:33.235: DEBUG/dalvikvm(2299): Added shared lib
>> /data/data/com.android.HIDtest/lib/libhidport.so 0x43bc8f90
>> 03-16 14:37:33.240: DEBUG/dalvikvm(2299): No JNI_OnLoad found in
>> /data/data/com.android.HIDtest/lib/libhidport.so 0x43bc8f90
>>
>
> Hi this message indicates you did not declare the optional  JNI_OnLoad
> method
>
>  03-16 14:37:35.825: DEBUG/dalvikvm(2299): +++ not scanning
>> '/system/lib/libwebcore.so' for 'open' (wrong CL)
>> 03-16 14:37:35.825: DEBUG/dalvikvm(2299): +++ not scanning
>> '/system/lib/libmedia_jni.so' for 'open' (wrong CL)
>> 03-16 14:37:35.825: DEBUG/dalvikvm(2299): +++ not scanning
>> '/system/lib/libexif.so' for 'open' (wrong CL)
>> 03-16 14:37:35.825: DEBUG/dalvikvm(2299): +++ not scanning
>> '/system/lib/libsrec_jni.so' for 'open' (wrong CL)
>> 03-16 14:37:35.825: WARN/dalvikvm(2299): No implementation found for
>> native Landroid/device/HIDPort;.open (II)I
>>
>
> Your library loaded ok but the method you are trying to access does not
> exist.
> do you have a mehtod called
>
> Java_android_device_HIDPort_open in your shared library?
>
>
>
>> 03-16 14:37:40.161: DEBUG/AndroidRuntime(2299): Shutting down VM
>> 03-16 14:37:40.161: WARN/dalvikvm(2299): threadid=3: thread exiting with
>> uncaught exception (group=0x4001b168)
>> 03-16 14:37:40.161: ERROR/AndroidRuntime(2299): Uncaught handler: thread
>> main exiting due to uncaught exception
>> 03-16 14:37:40.265: ERROR/AndroidRuntime(2299):
>> java.lang.UnsatisfiedLinkError: open
>> 03-16 14:37:40.265: ERROR/AndroidRuntime(2299):     at
>> android.device.HIDPort.open(Native Method)
>> 03-16 14:37:40.265: ERROR/AndroidRuntime(2299):     at
>> android.device.HIDPort.<init>(HIDPort.java:16)
>> 03-16 14:37:40.265: ERROR/AndroidRuntime(2299):     at
>> com.android.HIDtest.start$2.onClick(start.java:95)
>> 03-16 14:37:40.265: ERROR/AndroidRuntime(2299):     at
>> android.view.View.performClick(View.java:2364)
>>
>> anybody can give me some help?
>>
>   --
> unsubscribe: [email protected]
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to