Android Studio with Rhino 1.7.7 - cannot compile app

已查看 180 次
跳至第一个未读帖子

Tim Omer

未读,
2015年11月8日 12:39:332015/11/8
收件人 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

未读,
2015年11月9日 06:07:182015/11/9
收件人 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

未读,
2015年11月9日 18:49:142015/11/9
收件人 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


回复全部
回复作者
转发
0 个新帖子