{"action":"created","issue":{"url":"https://api.github.com/repos/ruboto/ruboto/issues/716","labels_url":"https://api.github.com/repos/ruboto/ruboto/issues/716/labels{/name}","comments_url":"https://api.github.com/repos/ruboto/ruboto/issues/716/comments","events_url":"https://api.github.com/repos/ruboto/ruboto/issues/716/events","html_url":"https://github.com/ruboto/ruboto/issues/716","id":66872041,"number":716,"title":"New App with no custom code terminates directly after start (java.lang.NoSuchMethodException: makeDexElements).","user":{"login":"hirschnase","id":163801,"avatar_url":"https://avatars.githubusercontent.com/u/163801?v=3","gravatar_id":"","url":"https://api.github.com/users/hirschnase","html_url":"https://github.com/hirschnase","followers_url":"https://api.github.com/users/hirschnase/followers","following_url":"https://api.github.com/users/hirschnase/following{/other_user}","gists_url":"https://api.github.com/users/hirschnase/gists{/gist_id}","starred_url":"https://api.github.com/users/hirschnase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirschnase/subscriptions","organizations_url":"https://api.github.com/users/hirschnase/orgs","repos_url":"https://api.github.com/users/hirschnase/repos","events_url":"https://api.github.com/users/hirschnase/events{/privacy}","received_events_url":"https://api.github.com/users/hirschnase/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ruboto/ruboto/labels/bug","name":"bug","color":"ff0000"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ruboto/ruboto/milestones/38","html_url":"https://github.com/ruboto/ruboto/milestones/1.3.1","labels_url":"https://api.github.com/repos/ruboto/ruboto/milestones/38/labels","id":1021348,"number":38,"title":"1.3.1","description":"Bugfixes for the 1.3.0 release.","creator":{"login":"donv","id":57275,"avatar_url":"https://avatars.githubusercontent.com/u/57275?v=3","gravatar_id":"","url":"https://api.github.com/users/donv","html_url":"https://github.com/donv","followers_url":"https://api.github.com/users/donv/followers","following_url":"https://api.github.com/users/donv/following{/other_user}","gists_url":"https://api.github.com/users/donv/gists{/gist_id}","starred_url":"https://api.github.com/users/donv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donv/subscriptions","organizations_url":"https://api.github.com/users/donv/orgs","repos_url":"https://api.github.com/users/donv/repos","events_url":"https://api.github.com/users/donv/events{/privacy}","received_events_url":"https://api.github.com/users/donv/received_events","type":"User","site_admin":false},"open_issues":68,"closed_issues":2,"state":"open","created_at":"2015-03-14T07:53:27Z","updated_at":"2015-04-07T12:45:13Z","due_on":"2015-05-02T22:00:00Z","closed_at":null},"comments":1,"created_at":"2015-04-07T12:35:49Z","updated_at":"2015-04-07T12:47:41Z","closed_at":null,"body":"I want to learn Ruboto and tried to make first steps with Ruboto 1.3.0 and the newest Android SDK installed on OS X. I generated a new project with\r\n\r\nruboto gen app --package org.ruboto.example.quick_start --target 19\r\n\r\nand then connect my Samsung S5 with Android 5.0 over USB and run\r\n\r\nrake install start\r\n\r\nThe app compiles and is being deployed to the phone and then started.\r\n\r\nWhat I did not expect is, that the app terminates immediately after the start. The logfile (rake log) shows me the following error(s):\r\n\r\n20150407 142406.780765 I/ActivityManager(  922): Start proc org.ruboto.example.quick_start for activity org.ruboto.example.quick_start/.QuickStartActivity: pid=2205 uid=10478 gids={50478, 9997} abi=armeabi-v7a\r\n20150407 142406.791696 I/SELinux ( 2205): Function: selinux_compare_spd_ram, SPD-policy is existed. and_ver=SEPF_SM-G900F_4.4.2 ver=34\r\n20150407 142406.791742 I/SELinux ( 2205): Function: selinux_compare_spd_ram , priority [2] , priority version is VE=SEPF_SM-G900F_5.0_0007\r\n20150407 142406.792993 E/SELinux ( 2205): [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL\r\n20150407 142406.793779 I/art     ( 2205): Late-enabling -Xcheck:jni\r\n20150407 142406.810012 I/SurfaceFlinger(  252): id=3365 createSurf (1080x1920),1 flag=404, Starting org.ruboto.example.quick_start\r\n20150407 142406.818517 D/TimaKeyStoreProvider( 2205): TimaSignature is unavailable\r\n20150407 142406.818570 D/ActivityThread( 2205): Added TimaKeyStore provider\r\n20150407 142407.118502 D/ResourcesManager( 2205): creating new AssetManager and set to /data/app/org.ruboto.example.quick_start-1/base.apk\r\n20150407 142407.130078 I/art     ( 2205): Created application space /data/dalvik-cache/arm/data@app@org.ruboto.example.quick_start-1@base.apk@classes.dex.art at 0x76faf000~0x76fbb4b8\r\n20150407 142407.131254 I/art     ( 2205): Loaded art file: /data/dalvik-cache/arm/data@app@org.ruboto.example.quick_start-1@base.apk@classes.dex.art\r\n20150407 142407.144702 D/RUBOTO  ( 2205): EntryPointActivity onCreate:\r\n20150407 142407.145440 I/Timeline( 2205): Timeline: Activity_launch_request id:org.ruboto.example.quick_start time:93735903\r\n20150407 142407.146653 I/ActivityManager(  922): START u0 {cmp=org.ruboto.example.quick_start/org.ruboto.SplashActivity (has extras)} from uid 10478 on display 0\r\n20150407 142407.158151 I/System.out( 2205): RubotoActivity onCreate(): org.ruboto.example.quick_start.QuickStartActivity, finishing: true\r\n20150407 142407.158944 D/Activity( 2205): performCreate Call secproduct feature valuefalse\r\n20150407 142407.158973 D/Activity( 2205): performCreate Call debug elastic valuetrue\r\n20150407 142407.175500 D/RUBOTO  ( 2205): SplashActivity onCreate:\r\n20150407 142407.176357 I/RUBOTO  ( 2205): SplashActivity Showing progress\r\n20150407 142407.304824 D/OpenGLRenderer( 2205): Render dirty regions requested: true\r\n20150407 142407.314270 D/Activity( 2205): performCreate Call secproduct feature valuefalse\r\n20150407 142407.314306 D/Activity( 2205): performCreate Call debug elastic valuetrue\r\n20150407 142407.315392 D/RUBOTO  ( 2205): SplashActivity onResume:\r\n20150407 142407.315427 D/RUBOTO  ( 2205): Max memory: 512MB\r\n20150407 142407.316051 D/RUBOTO  ( 2205): Setting up JRuby runtime (DEBUG)\r\n20150407 142407.368972 D/DexDex  ( 2205): validateClassPath : []\r\n20150407 142407.369857 D/DexDex  ( 2205): APK Date : 1428409425000 ,dexDir date : 1428409431000\r\n20150407 142407.369921 D/DexDex  ( 2205): shouldDexOpt(/data/app/org.ruboto.example.quick_start-1/base.apk,/data/data/org.ruboto.example.quick_start/app_dexdex,[]) => false on Thread[Thread-98408,5,main]\r\n20150407 142407.375153 E/AndroidRuntime( 2205): FATAL EXCEPTION: Thread-98408\r\n20150407 142407.375188 E/AndroidRuntime( 2205): Process: org.ruboto.example.quick_start, PID: 2205\r\n20150407 142407.375196 E/AndroidRuntime( 2205): java.lang.RuntimeException: java.lang.NoSuchMethodException: makeDexElements [class java.util.ArrayList, class java.io.File, class java.util.ArrayList]\r\n20150407 142407.375202 E/AndroidRuntime( 2205): \tat org.ruboto.DexDex.appendOdexesToClassPath(DexDex.java:271)\r\n20150407 142407.375209 E/AndroidRuntime( 2205): \tat org.ruboto.DexDex.validateClassPath(DexDex.java:158)\r\n20150407 142407.375224 E/AndroidRuntime( 2205): \tat org.ruboto.JRubyAdapter.setUpJRuby(JRubyAdapter.java:166)\r\n20150407 142407.375235 E/AndroidRuntime( 2205): \tat org.ruboto.JRubyAdapter.setUpJRuby(JRubyAdapter.java:123)\r\n20150407 142407.375242 E/AndroidRuntime( 2205): \tat org.ruboto.SplashActivity$1.run(SplashActivity.java:78)\r\n20150407 142407.375248 E/AndroidRuntime( 2205): \tat java.lang.Thread.run(Thread.java:818)\r\n20150407 142407.375264 E/AndroidRuntime( 2205): Caused by: java.lang.NoSuchMethodException: makeDexElements [class java.util.ArrayList, class java.io.File, class java.util.ArrayList]\r\n20150407 142407.375270 E/AndroidRuntime( 2205): \tat java.lang.Class.getDeclaredMethod(Class.java:635)\r\n20150407 142407.375286 E/AndroidRuntime( 2205): \tat org.ruboto.FrameworkHack.appendDexListImplICS(FrameworkHack.java:145)\r\n20150407 142407.375292 E/AndroidRuntime( 2205): \tat org.ruboto.DexDex.appendOdexesToClassPath(DexDex.java:260)\r\n20150407 142407.375302 E/AndroidRuntime( 2205): \t... 5 more\r\n20150407 142407.377064 V/ApplicationPolicy(  922): isApplicationStateBlocked userId 0 pkgname org.ruboto.example.quick_start\r\n20150407 142407.381983 W/ActivityManager(  922):   Force finishing activity org.ruboto.example.quick_start/org.ruboto.SplashActivity\r\n20150407 142407.388795 I/SurfaceFlinger(  252): id=3366 createSurf (193x193),1 flag=4, org.ruboto.example.quick_start/org.ruboto.SplashActivity\r\n20150407 142407.405241 I/Adreno-EGL( 2205): <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build:  ()\r\n20150407 142407.405301 I/Adreno-EGL( 2205): OpenGL ES Shader Compiler Version: E031.25.01.03\r\n20150407 142407.405309 I/Adreno-EGL( 2205): Build Date: 10/28/14 Tue\r\n20150407 142407.405316 I/Adreno-EGL( 2205): Local Branch: LA.BF.1.1_RB1_20141028_021_patches2\r\n20150407 142407.405333 I/Adreno-EGL( 2205): Remote Branch:\r\n20150407 142407.405340 I/Adreno-EGL( 2205): Local Patches:\r\n20150407 142407.405346 I/Adreno-EGL( 2205): Reconstruct Branch:\r\n20150407 142407.412818 I/OpenGLRenderer( 2205): Initialized EGL, version 1.4\r\n20150407 142407.429539 I/OpenGLRenderer( 2205): HWUI protection enabled for context ,  &this =0xb3a22088 ,&mEglDisplay = 1 , &mEglConfig = 8\r\n20150407 142407.430747 D/OpenGLRenderer( 2205): Enabling debug mode 0\r\n20150407 142407.445914 I/SurfaceFlinger(  252): id=3367 createSurf (1080x1920),1 flag=404, org.ruboto.example.quick_start/org.ruboto.SplashActivity\r\n20150407 142407.608902 D/RUBOTO  ( 2205): SplashActivity onPause:\r\n20150407 142407.634617 D/CrashAnrDetector(  922): processName: org.ruboto.example.quick_start\r\n20150407 142407.634671 D/CrashAnrDetector(  922): broadcastEvent : org.ruboto.example.quick_start data_app_crash\r\n20150407 142407.686908 I/ActivityManager_SDHA(  922): F:057M, C:229M, ProcCnt:069, avgU:-----K, mgn:113M, nF:63580K, fd:19388K, thd:180M, wm:05M, c:01, e:07, lmkIdx:15, emS:00, rsmd:T_, lstCrt:org.ruboto.example.quick_start, TOP:MtpApplication, ear:0, car:0\r\n20150407 142407.711302 I/SurfaceFlinger(  252): id=3369 createSurf (49x49),1 flag=4, Application Error: org.ruboto.example.quick_start\r\n20150407 142408.152896 I/ActivityManager_SDHA(  922): F:065M, C:200M, ProcCnt:068, avgU:-----K, mgn:113M, nF:55152K, fd:04943K, thd:180M, wm:05M, c:01, e:07, lmkIdx:15, emS:00, rsmd:T_, lstCrt:org.ruboto.example.quick_start, TOP:teslacoilsw.launcher, ear:0, car:0\r\n20150407 142408.170473 I/Timeline(  922): Timeline: Activity_windows_visible id: ActivityRecord{c06c023 u0 org.ruboto.example.quick_start/org.ruboto.SplashActivity t2532 f} time:93736928\r\n20150407 142408.177116 I/SurfaceFlinger(  252): id=3365 Removed Starting org.ruboto.example.quick_start (8/11)\r\n20150407 142408.178954 I/SurfaceFlinger(  252): id=3365 Removed Starting org.ruboto.example.quick_start (-2/11)\r\n20150407 142408.187901 I/SurfaceFlinger(  252): id=3366 Removed org.ruboto.example.quick_start/org.ruboto.SplashActivity (7/10)\r\n20150407 142408.187943 I/SurfaceFlinger(  252): id=3366 Removed org.ruboto.example.quick_start/org.ruboto.SplashActivity (-2/10)\r\n20150407 142408.204844 I/SurfaceFlinger(  252): id=3367 Removed org.ruboto.example.quick_start/org.ruboto.SplashActivity (6/9)\r\n20150407 142408.205641 I/SurfaceFlinger(  252): id=3367 Removed org.ruboto.example.quick_start/org.ruboto.SplashActivity (-2/9)\r\n20150407 142408.222862 D/RUBOTO  ( 2205): SplashActivity onDestroy:\r\n20150407 142408.223732 E/OpenGLRenderer( 2205): SFEffectCache:clear(), mSize = 0\r\n20150407 142408.259812 E/WindowManager( 2205):\r\n20150407 142408.259876 E/WindowManager( 2205): android.view.WindowLeaked: Activity org.ruboto.SplashActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{2a09f8fe V.E..... R......D 0,0-1002,348} that was originally added here\r\n20150407 142408.259895 E/WindowManager( 2205): \tat android.view.ViewRootImpl.<init>(ViewRootImpl.java:457)\r\n20150407 142408.259914 E/WindowManager( 2205): \tat android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:277)\r\n20150407 142408.259922 E/WindowManager( 2205): \tat android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)\r\n20150407 142408.259929 E/WindowManager( 2205): \tat android.app.Dialog.show(Dialog.java:312)\r\n20150407 142408.259936 E/WindowManager( 2205): \tat android.app.ProgressDialog.show(ProgressDialog.java:116)\r\n20150407 142408.260012 E/WindowManager( 2205): \tat android.app.ProgressDialog.show(ProgressDialog.java:104)\r\n20150407 142408.260029 E/WindowManager( 2205): \tat org.ruboto.SplashActivity.showProgress(SplashActivity.java:171)\r\n20150407 142408.260047 E/WindowManager( 2205): \tat org.ruboto.SplashActivity.initJRuby(SplashActivity.java:75)\r\n20150407 142408.260057 E/WindowManager( 2205): \tat org.ruboto.SplashActivity.onCreate(SplashActivity.java:43)\r\n20150407 142408.260063 E/WindowManager( 2205): \tat android.app.Activity.performCreate(Activity.java:6221)\r\n20150407 142408.260070 E/WindowManager( 2205): \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)\r\n20150407 142408.260085 E/WindowManager( 2205): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2611)\r\n20150407 142408.260132 E/WindowManager( 2205): \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2725)\r\n20150407 142408.260159 E/WindowManager( 2205): \tat android.app.ActivityThread.access$900(ActivityThread.java:172)\r\n20150407 142408.260167 E/WindowManager( 2205): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422)\r\n20150407 142408.260179 E/WindowManager( 2205): \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n20150407 142408.260186 E/WindowManager( 2205): \tat android.os.Looper.loop(Looper.java:145)\r\n20150407 142408.260203 E/WindowManager( 2205): \tat android.app.ActivityThread.main(ActivityThread.java:5834)\r\n20150407 142408.260209 E/WindowManager( 2205): \tat java.lang.reflect.Method.invoke(Native Method)\r\n20150407 142408.260216 E/WindowManager( 2205): \tat java.lang.reflect.Method.invoke(Method.java:372)\r\n20150407 142408.260222 E/WindowManager( 2205): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)\r\n20150407 142408.260265 E/WindowManager( 2205): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)\r\n20150407 142409.589031 I/Process ( 2205): Sending signal. PID: 2205 SIG: 9\r\n20150407 142409.612688 I/ActivityManager(  922): Process org.ruboto.example.quick_start (pid 2205)(adj 9) has died(84,191)\r\n20150407 142409.668154 I/SurfaceFlinger(  252): id=3369 Removed Application Error: org.ruboto.example.quick_start (7/8)\r\n20150407 142409.669307 I/SurfaceFlinger(  252): id=3369 Removed Application Error: org.ruboto.example.quick_start (-2/8)\r\n\r\nI expected to see the standard \"What hath Matz wrought?\" screen as shown and explained in the tutorials. Please help! :)\r\n\r\nThanks, Marc"},"comment":{"url":"https://api.github.com/repos/ruboto/ruboto/issues/comments/90536944","html_url":"https://github.com/ruboto/ruboto/issues/716#issuecomment-90536944","issue_url":"https://api.github.com/repos/ruboto/ruboto/issues/716","id":90536944,"user":{"login":"donv","id":57275,"avatar_url":"https://avatars.githubusercontent.com/u/57275?v=3","gravatar_id":"","url":"https://api.github.com/users/donv","html_url":"https://github.com/donv","followers_url":"https://api.github.com/users/donv/followers","following_url":"https://api.github.com/users/donv/following{/other_user}","gists_url":"https://api.github.com/users/donv/gists{/gist_id}","starred_url":"https://api.github.com/users/donv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donv/subscriptions","organizations_url":"https://api.github.com/users/donv/orgs","repos_url":"https://api.github.com/users/donv/repos","events_url":"https://api.github.com/users/donv/events{/privacy}","received_events_url":"https://api.github.com/users/donv/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T12:47:40Z","updated_at":"2015-04-07T12:47:40Z","body":"Hi @hirschnase !\r\n\r\nThanks for the report!  This is of course a bug.\r\n\r\nDid this happen with an emulator as well?  You can start an emulator by running\r\n\r\n    ruboto emulator\r\n\r\nin your project directory.  Be sure to disconnect your phone when developing with an emulator."}}