Daves-MBP:Hello davetrollope$ be rake
Create ./build/Development-26/classes.dex
Merged dex #1 (2 defs/1.3KiB)
Merged dex #2 (39 defs/24.4KiB)
Result is 39 defs/36.2KiB. Took 0.0s
Create ./build/Development-26/Hello.apk
Sign ./build/Development-26/Hello.apk
Align ./build/Development-26/Hello.apk
Install ./build/Development-26/Hello.apk
Start com.yourcompany.hello/.MainActivity
--------- beginning of main
--------- beginning of system
03-30 20:35:57.620 24204 24204 E com/yourcompany/hello: Exception raised: NameError: undefined method `add' for class `Set'
03-30 20:35:57.623 24204 24204 E com/yourcompany/hello: from ./app/set.rb:352 in `rb_scope2'
03-30 20:35:57.623 24204 24204 E com/yourcompany/hello: from ./app/set.rb:660 in `rb_scope1'
03-30 20:35:57.623 24204 24204 E com/yourcompany/hello: Uncaught exception when initializing `set.rb.x86.o' scope -- aborting
--------- beginning of crash
03-30 20:35:57.624 24204 24204 E AndroidRuntime: FATAL EXCEPTION: main
03-30 20:35:57.624 24204 24204 E AndroidRuntime: Process: com.yourcompany.hello, PID: 24204
03-30 20:35:57.624 24204 24204 E AndroidRuntime: java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/com.yourcompany.hello-n-TlyK7QizdBJYfLJpXquQ==/lib/x86/libpayload.so"
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1657)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at com.yourcompany.hello.MainActivity.<clinit>(MainActivity.java:10)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at java.lang.Class.newInstance(Native Method)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at android.app.Instrumentation.newActivity(Instrumentation.java:1173)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2708)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at android.app.ActivityThread.-wrap11(Unknown Source:0)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:105)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6541)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
03-30 20:35:57.624 24204 24204 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Copy https://github.com/ruby/ruby/blob/trunk/lib/set.rb in to a new project and run. On init, the following crash happens: