{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack/issues/34","repository_url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack","labels_url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack/issues/34/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack/issues/34/events","html_url":"https://github.com/NativeScript/nativescript-dev-webpack/issues/34","id":194826427,"number":34,"title":"have to build twice on android or tns crashes","user":{"login":"vbresults","id":7179668,"avatar_url":"https://avatars.githubusercontent.com/u/7179668?v=3","gravatar_id":"","url":"https://api.github.com/users/vbresults","html_url":"https://github.com/vbresults","followers_url":"https://api.github.com/users/vbresults/followers","following_url":"https://api.github.com/users/vbresults/following{/other_user}","gists_url":"https://api.github.com/users/vbresults/gists{/gist_id}","starred_url":"https://api.github.com/users/vbresults/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbresults/subscriptions","organizations_url":"https://api.github.com/users/vbresults/orgs","repos_url":"https://api.github.com/users/vbresults/repos","events_url":"https://api.github.com/users/vbresults/events{/privacy}","received_events_url":"https://api.github.com/users/vbresults/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-11T11:15:43Z","updated_at":"2016-12-14T01:04:38Z","closed_at":null,"body":"Have to build first without `--bundle` and then again *with it*, otherwise it crashes.  So, building with webpack takes double the time which is a major problem.  Ping @hdeshev\r\n\r\n```\r\nW/System.err( 4979): java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: \r\nW/System.err( 4979): Error calling module function \r\nW/System.err( 4979): Error: java.lang.ClassNotFoundException: com.tns.NativeScriptActivity\r\nW/System.err( 4979):     java.lang.Class.classForName(Native Method)\r\nW/System.err( 4979):     java.lang.Class.forName(Class.java:309)\r\nW/System.err( 4979):     java.lang.Class.forName(Class.java:273)\r\nW/System.err( 4979):     com.tns.Runtime.getClassForName(Runtime.java:947)\r\nW/System.err( 4979):     com.tns.ClassResolver.resolveClass(ClassResolver.java:50)\r\nW/System.err( 4979):     com.tns.Runtime.resolveClass(Runtime.java:565)\r\nW/System.err( 4979):     com.tns.Runtime.runModule(Native Method)\r\nW/System.err( 4979):     com.tns.Runtime.runModule(Runtime.java:514)\r\nW/System.err( 4979):     com.tns.Runtime.run(Runtime.java:509)\r\nW/System.err( 4979):     com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:17)\r\nW/System.err( 4979):     android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)\r\nW/System.err( 4979):     android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553)\r\nW/System.err( 4979):     android.app.ActivityThread.access$1500(ActivityThread.java:151)\r\nW/System.err( 4979):     android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)\r\nW/System.err( 4979):     android.os.Handler.dispatchMessage(Handler.java:102)\r\nW/System.err( 4979):     android.os.Looper.loop(Looper.java:135)\r\nW/System.err( 4979):     android.app.ActivityThread.main(ActivityThread.java:5254)\r\nW/System.err( 4979):     java.lang.reflect.Method.invoke(Native Method)\r\nW/System.err( 4979):     java.lang.reflect.Method.invoke(Method.java:372)\r\nW/System.err( 4979):     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\r\nW/System.err( 4979):     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\nW/System.err( 4979): Caused by: java.lang.ClassNotFoundException: Didn't find class \"com.tns.NativeScriptActivity\" on path: DexPathList[[zip file \"/data/app/com.example.app-1/base.apk\"],nativeLibraryDirectories=[/data/app/com.example.app-1/lib/x86, /vendor/lib, /system/lib]]\r\nW/System.err( 4979):     dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)\r\nW/System.err( 4979):     java.lang.ClassLoader.loadClass(ClassLoader.java:511)\r\nW/System.err( 4979):     java.lang.ClassLoader.loadClass(ClassLoader.java:469)\r\nW/System.err( 4979):     java.lang.Class.classForName(Native Method)\r\nW/System.err( 4979):     java.lang.Class.forName(Class.java:309)\r\nW/System.err( 4979):     java.lang.Class.forName(Class.java:273)\r\nW/System.err( 4979):     com.tns.Runtime.getClassForName(Runtime.java:947)\r\nW/System.err( 4979):     com.tns.ClassResolver.resolveClass(ClassResolver.java:50)\r\nW/System.err( 4979):     com.tns.Runtime.resolveClass(Runtime.java:565)\r\nW/System.err( 4979):     com.tns.Runtime.runModule(Native Method)\r\nW/System.err( 4979):     com.tns.Runtime.runModule(Runtime.java:514)\r\nW/System.err( 4979):     com.tns.Runtime.run(Runtime.java:509)\r\nW/System.err( 4979):     com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:17)\r\nW/System.err( 4979):     android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)\r\nW/System.err( 4979):     android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553)\r\nW/System.err( 4979):     android.app.ActivityThread.access$1500(ActivityThread.java:151)\r\nW/System.err( 4979):     android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)\r\nW/System.err( 4979):     android.os.Handler.dispatchMessage(Handler.java:102)\r\nW/System.err( 4979):     android.os.Looper.loop(Looper.java:135)\r\nW/System.err( 4979):     android.app.ActivityThread.main(ActivityThread.java:5254)\r\nW/System.err( 4979):     java.lang.reflect.Method.invoke(Native Method)\r\nW/System.err( 4979):     java.lang.reflect.Method.invoke(Method.java:372)\r\nW/System.err( 4979):     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\r\nW/System.err( 4979):     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\n```"},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack/issues/comments/266911783","html_url":"https://github.com/NativeScript/nativescript-dev-webpack/issues/34#issuecomment-266911783","issue_url":"https://api.github.com/repos/NativeScript/nativescript-dev-webpack/issues/34","id":266911783,"user":{"login":"vbresults","id":7179668,"avatar_url":"https://avatars.githubusercontent.com/u/7179668?v=3","gravatar_id":"","url":"https://api.github.com/users/vbresults","html_url":"https://github.com/vbresults","followers_url":"https://api.github.com/users/vbresults/followers","following_url":"https://api.github.com/users/vbresults/following{/other_user}","gists_url":"https://api.github.com/users/vbresults/gists{/gist_id}","starred_url":"https://api.github.com/users/vbresults/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbresults/subscriptions","organizations_url":"https://api.github.com/users/vbresults/orgs","repos_url":"https://api.github.com/users/vbresults/repos","events_url":"https://api.github.com/users/vbresults/events{/privacy}","received_events_url":"https://api.github.com/users/vbresults/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T01:04:38Z","updated_at":"2016-12-14T01:04:38Z","body":"@hdeshev I am using the commands that the scripts call directly (including --disable-npm-install) and the issue persists on 0.0.20"}}
{"actor":{"display_login":"vbresults"}}