Skip to content Skip to sidebar Skip to footer

Aosp Keyboard: Nosuchmethoderror - Createemptydictfilenative

I'm trying to build the AOSP keyboard from the 5.0.2 branch after adding some custom code to obtain pressure values for key touches. I'm using lunch full-eng to build the source an

Solution 1:

I just pulled up this searchon the package you're using and found that the class and method you're looking for do exist and for some reason you seem not to have it on your local repository.

Have you tried syncing/pulling the Google source code again? You may have git stash your changes before you sync (you can see the details of the command and its use here.

I'm doing some system app modification/creation as well and all the sources I needed were available when I built using mm.

My last suggestion would be to make sure you make the full-eng platform first once before you try compiling the LatinIME by itself. I had to do that for my app and I believe it will apply to your case too.

Best of luck - hope it turns out well!

Solution 2:

createEmptyDictFileNative is in BinaryDictionaryUtils and JNI_LIB_NAME is here.

You might have an outdated version of libjni_latinime.so that does not contain the createEmptyDictFileNative function exported for JNI.

Pull the library and verify that method exists:

adb pull /system/lib/libjni_latinime.so
nm -D libjni_latinime.so | grep createEmptyDictFile

If the library doesn't exist, you need to remount /system and install it. If the native method doesn't exist, you need an updated libjni_latinime.so shared library

Post a Comment for "Aosp Keyboard: Nosuchmethoderror - Createemptydictfilenative"