I problem with native angular
The command I use tns emulate android --geny "image name"
The app launch but with blank. The app is the tutorial app. And branch is angular-start.
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.groceries/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: NativeScript application not initialized correctly. No function 'createActivity' found on the application object. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261) at android.app.ActivityThread.access$600(ActivityThread.java:141) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5103) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(
We will look at the tutorial, it looks it is not update with latest {N} release and angular rc4.
If you want to start with angular please try this: tns create MyApp --ng tns emulate android --geny "image name"
If you still encounter some problem. please post your package.json and tns version.
ok
Thanks
On Mon, Aug 22, 2016 at 11:59 AM, dtopuzov [email protected] wrote:
We will look at the tutorial, it might be temporary broken. If you want to start with angular please try this: tns create MyApp --ng tns emulate android --geny "image name"
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NativeScript/nativescript-cli/issues/2009#issuecomment-241324825, or mute the thread https://github.com/notifications/unsubscribe-auth/AFkNYjCmU6uyoo1UYinUfd4w_5sUx-K6ks5qiUHWgaJpZM4JpQ71 .
Abhisek Malakar
Hi,
Actually I was trying to learn the natviescript angular. Because I have already done without angular. Now I want to update my skills. So as per documentation I just tried to run the grocery app. And now I am facing the problem.
It is my native script vresion and you can see that I am on the grocery app angular-start branch.

BUt I got this error when I have tried to emulate the app with above command

I have made a fresh install and it resolved the issue. I think today I have updated my native script and it server the purpose.
Thanks