BUILD SUCCESSFUL
Total time: 4.916 secs
This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.10/userguide/gradle_daemon.html
Project successfully built.
Using /home/cesco/code/src/bitbucket.org/cescoferraro/track/nativescript/platforms/android/build/outputs/apk/nativescript-debug.apk
Waiting for emulator device initialization...
installing /home/cesco/code/src/bitbucket.org/cescoferraro/track/nativescript/platforms/android/build/outputs/apk/nativescript-debug.apk through adb
running /home/cesco/code/src/bitbucket.org/cescoferraro/track/nativescript/platforms/android/build/outputs/apk/nativescript-debug.apk through adb
JS: heloooo
06-08 07:51:01.005 1796 1796 W System.err: at com.tns.Runtime.callJSMethodNative(Native Method)
06-08 07:51:01.005 1796 1796 W System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:861)
06-08 07:51:01.005 1796 1796 W System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:726)
06-08 07:51:01.005 1796 1796 W System.err: at com.tns.Runtime.callJSMethod(Runtime.java:712)
06-08 07:51:01.005 1796 1796 W System.err: at com.tns.Runtime.callJSMethod(Runtime.java:693)
06-08 07:51:01.005 1796 1796 W System.err: at com.tns.Runtime.callJSMethod(Runtime.java:683)
// this import should be first in order to load some required settings (like globals and reflect-metadata)
import {nativeScriptBootstrap} from "nativescript-angular/application";
import {NS_ROUTER_PROVIDERS, NS_ROUTER_DIRECTIVES} from "nativescript-angular/router";
import {MagicService} from "nativescript-ng2-magic";
MagicService.ROUTER_DIRECTIVES = NS_ROUTER_DIRECTIVES;
// import your root component here
console.log("heloooo");
import {TrackAppComponent} from "./app/track.component";
nativeScriptBootstrap(TrackAppComponent, [NS_ROUTER_PROVIDERS], { startPageActionBarHidden: false });
Here is my nativescript/app/app/track.component.ts
import { Component } from 'nativescript-ng2-magic';
@Component({
selector: 'track-app',
templateUrl: './app/track.component.html',
styleUrls: ['./app/track.component.css']
})
export class TrackAppComponent {
title = 'track works!';
}
I am starting a new project, but getting this:
The device spits
Here is my
nativescript/app/main.ts
Here is my
nativescript/app/app/track.component.ts