Android fatal error loading keyboard

I’ve got ‘Fatal Error with jv-java_jawa. Loading default keyboard’ after several tries.

I used my last release https://github.com/keymanapp/keyboards/tree/master/release/j/jawa and added touch keyboard. Then at first I modified the keyboard, and build the package, and install it on my Android, I got the error above. Then I replaced the touch keyboard with the default (basic), repackage, and reinstall it on my Android. Got the same error.

My Keyman Android initial version: 12.0.4214, I’ve updated to 13.0.6200, reinstall the .kmn, still the same error.

My Android version 9 patch 5 May 2019, phone Nokia 2.2 Android One.

Is it related to [SOLVED] Keyman 12.0 fatal error for older Android devices?

Welcome back to the forum @bennylin

It took me some time to rebuild your keyboard package to test.
I started with your jawa branch on GitHub and added the touch layout keyboard in the jawa.kps keyboard package source:

    <File>
      <Name>..\build\jawa.kmx</Name>
      <Description>Keyboard Nulisa Aksara Jawa</Description>
      <CopyLocation>0</CopyLocation>
      <FileType>.kmx</FileType>
    </File>
    <!-- Touch layout added here.... -->
    <File>
      <Name>..\build\jawa.js</Name>
      <Description>Keyboard Nulisa Aksara Jawa</Description>
      <CopyLocation>0</CopyLocation>
      <FileType>.js</FileType>
    </File>
  </Files>
  <Keyboards>
    <Keyboard>
      <Name>Nulisa Aksara Jawa</Name>
      <ID>jawa</ID>
      <Version>1.0</Version>
      <OSKFont>TuladhaJejeg_gr.ttf</OSKFont>
      <DisplayFont>TuladhaJejeg_gr.ttf</DisplayFont>
      <Languages>
        <Language ID="jv-Java">Javanese</Language>
      </Languages>
    </Keyboard>
  </Keyboards>

The built jawa.kmp installed on my Android emulator:

Configuration

Keyman for Android 13.0.6200 stable
Pixel 2
Android 9 (API 28)

Can you try my test link and see if you get the same loading errors?

Hi @Darcy, nice to be able to continue, and on a memorable day, the Mother’s Tongue Day!

Your .kmp works!

On my .kmp, I put the jawa.keyman-touch-layout, and I don’t have the js file.

I’ve created a pull request. Thanks!

The compiler combines the .keyman-touch-layout file with the compiled .kmn to generate a .js file, which is usually placed into a build folder. You don’t need to include the .keyman-touch-layout file in the package.

See https://help.keyman.com/developer/13.0/reference/file-types/ for information on the different types of files.

Hi Marc,

The tutorial here: https://help.keyman.com/developer/engine/android/current-version/guides/in-app/ should probably be updated.

This ticket can be closed. Thanks!

What should be updated in that tutorial? Note that that is aimed at app developers, not keyboard developers.

Ah, OK, I think I’m mistaking it for keyboard tutorial, where the js file is in the source folder.

1 Like

Okay, will make note of that, thanks!