public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Sonny To <son.c.to@gmail.com>
To: kawa@sourceware.org
Subject: embedding kawa into android app
Date: Sat, 26 Aug 2017 00:14:00 -0000	[thread overview]
Message-ID: <CAJxjsJs5Q5wcHpENp_byZwc_G-iVY1KhNnCkTP99DjY6uS-iMw@mail.gmail.com> (raw)

Hi,
I want to embed kawa into android app and eval some scheme. I don't want to
write the app in kawa just yet. I'm just experimenting with embedding kawa
first. I was using clojure on android but the clojure runtime is too big
and takes too long to initialize. Kawa seems lean and mean.

I used android studio and used a template helloworld. it compiles and runs
fine. then i added kawa.jar into app/libs directory, recompile and re-ran
it and got this stack trace

  java.lang.RuntimeException: Unable to instantiate activity
  ComponentInfo{datom.world.myapplication/datom.world.myapplication.MainActivity}:
  java.lang.ClassNotFoundException: Didn't find class
  "datom.world.myapplication.MainActivity" on path: DexPathList[[zip file
  "/data/app/datom.world.myapplication-2/base.apk", zip file
  "/data/app/datom.world.myapplication-2/split_lib_dependencies_apk.apk", zip
  file "/data/app/datom.world.myapplication-2/split_lib_slice_0_apk.apk", zip
  file "/data/app/datom.world.myapplication-2/split_lib_slice_1_apk.apk", zip
  file "/data/app/datom.world.myapplication-2/split_lib_slice_2_apk.apk", zip
  file "/data/app/datom.world.myapplication-2/split_lib_slice_3_apk.apk", zip
  file "/data/app/datom.world.myapplication-2/split_lib_slice_4_apk.apk", zip
  file "/data/app/datom.world.myapplication-2/split_lib_slice_5_apk.apk", zip
  file "/data/app/datom.world.myapplication-2/split_lib_slice_6_apk.apk", zip
  file "/data/app/datom.world.myapplication-2/split_lib_slice_7_apk.apk", zip
  file "/data/app/datom.world.myapplication-2/split_lib_slice_8_apk.apk", zip
  file
  "/data/app/datom.world.myapplication-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/datom.world.myapplication-2/lib/arm64,
  /system/lib64, /vendor/lib64]]

  at
  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2568)

  at
  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2727)

  at android.app.ActivityThread.-wrap12(ActivityThread.java)

  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)

  at android.os.Handler.dispatchMessage(Handler.java:102)

  at android.os.Looper.loop(Looper.java:154)

  at android.app.ActivityThread.main(ActivityThread.java:6121)

  at java.lang.reflect.Method.invoke(Native Method)

  at
  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)

any insight is greatly appreciated.

thanks,
sonny

             reply	other threads:[~2017-08-26  0:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-26  0:14 Sonny To [this message]
2017-08-26 15:13 ` Sonny To

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJxjsJs5Q5wcHpENp_byZwc_G-iVY1KhNnCkTP99DjY6uS-iMw@mail.gmail.com \
    --to=son.c.to@gmail.com \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).