Enabling debug logs I can see the library being loaded and methods 
registered:

I/MediaPlayerJNI(   72): JNI_OnLoad registering functions...
I/ResampleInputStream(   72): android/media/ResampleInputStream JNI 
registering
I/dalvikvm(   72): threadid=1: recursive native library load attempt 
(/system/lib/libmedia_jni.so)
D/MtpDeviceJNI(   72): register_android_mtp_MtpDevice
I/dalvikvm(   72): threadid=1: recursive native library load attempt 
(/system/lib/libmedia_jni.so)
I/dalvikvm(   72): threadid=1: recursive native library load attempt 
(/system/lib/libmedia_jni.so)
I/MediaPlayerJNI(   72): JNI_OnLoad functions registered

So I don't understand why, when java requires "fir21" from 
ResampleInputStream JNI, it can't find it.

Naming should be correct, I guess... (this is all OOB AOSP code).

On Monday, 25 November 2013 05:27:28 UTC-8, ffxx68 wrote:
>
> I built my AOSP JB for a tablet, including all necessary customizations 
> (project details discussed over here: 
> https://groups.google.com/forum/#!forum/renesas-emev-osp).
>
> I'm now in the clean-up stage, with a list of "minor" issues being 
> debugged and hopefully removed. One of these is the use of Google Voice 
> Search, which fails with this message:
>
> *Unfortunately, Voice Search has stopped*
>
> I've attached the complete logcat at http://pastebin.com/K1ces0Ai. Latest 
> lines are those from the failure above.
>
> I think these are the critical ones:
>
> W/dalvikvm( 1130): No implementation found for native 
> Lcom/google/android/voicesearch/endpointer/ResampleInputStream;.fir21:([BI[BII)V
> W/dalvikvm( 1130): threadid=16: thread exiting with uncaught exception 
> (group=0x40a46300)
> E/AndroidRuntime( 1130): FATAL EXCEPTION: Thread-122
> E/AndroidRuntime( 1130): java.lang.UnsatisfiedLinkError: Native method not 
> found: 
> com.google.android.voicesearch.endpointer.ResampleInputStream.fir21:([BI[BII)V
> E/AndroidRuntime( 1130):        at 
> com.google.android.voicesearch.endpointer.ResampleInputStream.fir21(Native 
> Method)
>
> I found this in JB source code:
>
> ./frameworks/base/media/jni/android_media_ResampleInputStream.cpp
>
>  where fir21 is implemented, but it looks like it hasn't been compiled, 
> or not correctly compiled. Could it be?
>
> I looked at 
> http://developer.android.com/training/articles/perf-jni.html#faq_ULE too, 
> but it's been of little help.
>
> Any suggestions?
>
> Thanks in advance!
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to