Android Studio with Rhino 1.7.7 - cannot compile app

180 views
Skip to first unread message

Tim Omer

unread,
Nov 8, 2015, 12:39:33 PM11/8/15
to mozilla-rhino
Hello all,

I am wanting to use Rhino with Android Studio but not having any joy.

I have added the following dependency
compile 'org.mozilla:rhino:1.7.7'

When compiling my app it fails with the following...
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime: FATAL EXCEPTION: main
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime: Process: com.hypodiabetic.happ, PID: 22114
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime: java.lang.NoClassDefFoundError: org.mozilla.javascript.tools.debugger.treetable.JTreeTable
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at java.lang.Class.classForName(Native Method)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at java.lang.Class.forName(Class.java:309)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at com.activeandroid.ModelInfo.scanForModelClasses(ModelInfo.java:187)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at com.activeandroid.ModelInfo.scanForModel(ModelInfo.java:152)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at com.activeandroid.ModelInfo.<init>(ModelInfo.java:63)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at com.activeandroid.Cache.initialize(Cache.java:66)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at com.activeandroid.ActiveAndroid.initialize(ActiveAndroid.java:44)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at com.activeandroid.ActiveAndroid.initialize(ActiveAndroid.java:34)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at com.activeandroid.ActiveAndroid.initialize(ActiveAndroid.java:30)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at com.activeandroid.app.Application.onCreate(Application.java:25)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4590)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at android.app.ActivityThread.access$1600(ActivityThread.java:154)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1382)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:135)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5291)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:372)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
11-08 17:34:55.778 22114-22114/? E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)

Is anyone currently using Rhino with Android Studio?

Tim Omer

unread,
Nov 9, 2015, 6:07:18 AM11/9/15
to mozilla-rhino
This has now be resolved, was an issue with ActiveAndroid that for some reason Rhino was triggering. This was fixed by following...
https://github.com/pardom/ActiveAndroid/issues/228

Remember to update your AA_DB_VERSION
...

Greg Brail

unread,
Nov 9, 2015, 6:49:14 PM11/9/15
to mozill...@googlegroups.com
Glad that you were able to resolve this!

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



--
Greg Brail | apigee twitter @gbrail @apigee


Reply all
Reply to author
Forward
0 new messages