This is a migrated thread and some comments may be shown as answers.

How to run Hello world

3 Answers 83 Views
AppBuilder extension for Visual Studio
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Seyfor
Top achievements
Rank 1
Seyfor asked on 09 Oct 2016, 03:58 PM

I buy AppBuilder for one month to see what it offers when building NativeScript with Angular 2. I can not start debugging application in Simulator. I am trying to find button run app-name in simulator but there is no such link. Doc.
I am already running 2 emulators: one Android SDK and one Visual Studio (VS menu AppBuilder-> Run emulator)

Where can I find it? Or more important how can I debug hello world from visual studio in Emulator?

I spent 50$ and get nothing. I even install windows 10 and try to run it with new windows. (Spend a week for this.) Please help me, I will not spend another 50$ and get nothing again. I even install and try Xamarian, but I would really like to stick with Telerik. But only if things are working. I also try OpenSource NativeScript, but what a pain was this. I want to see a VS project and a simple debug button to debug in emulator. That would be a good user experience.

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetina
Telerik team
answered on 12 Oct 2016, 08:28 AM
Hi Matjaž,

Please note that the documentation article that you are linking to is from the Cordova development section. The documentation articles for NativeScript in AppBuilder is available in this section:
NativeScript Mobile App Development

NativeScript apps can't be run in a web-based simulator like the one used for Cordova apps because they are not working in the same way Cordova apps do (running JS in a WebView). Using AppBuilder, you can run your app in a device emulator:
Run Your NativeScript Apps in the Native Emulators

or deploy the app directly on a device:
Run Your NativeScript Apps on Devices

Thanks to AppBuilder LiveSync, you can quickly sync your changes on the target device without doing a full re-deployment of the app.

I should note that, as mentioned in the documentation for native emulators, when using the Visual Studio extension, you can only run an Android emulator, because in order to open an iOS emulator, you need to be working on a Mac.

Let me know if you have further questions.

Regards,
Tsvetina
Telerik by Progress
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Seyfor
Top achievements
Rank 1
answered on 12 Oct 2016, 02:56 PM

Thank you.

I get error in VS (I also opened support ticket for this):

 

[2016-10-11 21:02:49.277] Log (Info,Medium): The user 'Matjaž Cof' logged in to Telerik Platform.
[2016-10-11 21:20:57.438] Log (Info,Low): Found device sdk_google_phone_armv7
[2016-10-11 21:22:30.136] Log (Debug,Low): Visual Studio Emulator Manager: Validating emulator arguments...
[2016-10-11 21:22:30.145] Log (Debug,Low): Visual Studio Emulator Manager: Determining if emulator is already running...
[2016-10-11 21:22:30.145] Log (Debug,Low): Visual Studio Emulator Manager: Preparing virtual machine...
[2016-10-11 21:22:30.145] Log (Debug,Low): Visual Studio Emulator Manager: Launching emulator...
[2016-10-11 21:22:30.146] Log (Debug,Low): Visual Studio Emulator Manager: Emulator launched successfully.
[2016-10-11 21:22:30.205] Log (Info,Low): Lost device sdk_google_phone_armv7
[2016-10-11 21:22:35.474] Log (Info,Low): Found device sdk_google_phone_armv7
[2016-10-11 21:22:43.825] Log (Info,Low): Found device 5-inch Lollipop (5.1.1) XXHDPI Phone
[2016-10-11 21:22:44.588] Log (Info,Medium): Checking user identity
[2016-10-11 21:22:44.594] Log (Info,Medium): User logged in as admin@domerus.eu
[2016-10-11 21:22:44.650] Log (Info,High): Ignored: D:\Projekti\Tests\NativeScriptAngular2TypeScriptHelloWorld\NativeScriptAngular2TypeScriptHelloWorld\.app.json
[2016-10-11 21:22:44.650] Log (Info,High): Ignored: D:\Projekti\Tests\NativeScriptAngular2TypeScriptHelloWorld\NativeScriptAngular2TypeScriptHelloWorld\.yo-rc.json
[2016-10-11 21:22:44.650] Log (Info,High): Ignored: D:\Projekti\Tests\NativeScriptAngular2TypeScriptHelloWorld\NativeScriptAngular2TypeScriptHelloWorld\typings\tns-core-modules-schemas\tns.xsd
[2016-10-11 21:22:44.694] Log (Info,Medium): Preparing for partial upload...
[2016-10-11 21:22:45.367] Log (Info,Medium): Cannot find previously uploaded package
[2016-10-11 21:22:45.368] Log (Info,Medium): Switching to complete upload...
[2016-10-11 21:22:45.369] Log (Info,Medium): Packing files .abproject, package.json, app\app.css, app\app.js, app\LICENSE, app\package.json, app\App_Resources\Android\app.gradle, app\App_Resources\Android\drawable-hdpi\icon.png, app\App_Resources\Android\drawable-hdpi\splashscreen.png, app\App_Resources\Android\drawable-land-hdpi\splashscreen.png, app\App_Resources\Android\drawable-land-ldpi\splashscreen.png, app\App_Resources\Android\drawable-land-mdpi\splashscreen.png, app\App_Resources\Android\drawable-land-xhdpi\splashscreen.png, app\App_Resources\Android\drawable-land-xxhdpi\splashscreen.png, app\App_Resources\Android\drawable-land-xxxhdpi\splashscreen.png, app\App_Resources\Android\drawable-ldpi\icon.png, app\App_Resources\Android\drawable-ldpi\splashscreen.png, app\App_Resources\Android\drawable-mdpi\icon.png, app\App_Resources\Android\drawable-mdpi\splashscreen.png, app\App_Resources\Android\drawable-xhdpi\icon.png, app\App_Resources\Android\drawable-xhdpi\splashscreen.png, app\App_Resources\Android\drawable-xxhdpi\icon.png, app\App_Resources\Android\drawable-xxhdpi\splashscreen.png, app\App_Resources\Android\drawable-xxxhdpi\icon.png, app\App_Resources\Android\drawable-xxxhdpi\splashscreen.png, app\App_Resources\iOS\Default-568h@2x.png, app\App_Resources\iOS\Default-667h.png, app\App_Resources\iOS\Default-736h.png, app\App_Resources\iOS\Default-Landscape-1366@2x.png, app\App_Resources\iOS\Default-Landscape-667h.png, app\App_Resources\iOS\Default-Landscape-736h.png, app\App_Resources\iOS\Default-Landscape.png, app\App_Resources\iOS\Default-Landscape@2x.png, app\App_Resources\iOS\Default-Portrait-1366@2x.png, app\App_Resources\iOS\Default-Portrait.png, app\App_Resources\iOS\Default-Portrait@2x.png, app\App_Resources\iOS\Default.png, app\App_Resources\iOS\Default@2x.png, app\App_Resources\iOS\icon-40.png, app\App_Resources\iOS\icon-40@2x.png, app\App_Resources\iOS\icon-40@3x.png, app\App_Resources\iOS\icon-60.png, app\App_Resources\iOS\icon-60@2x.png, app\App_Resources\iOS\icon-60@3x.png, app\App_Resources\iOS\icon-72.png, app\App_Resources\iOS\icon-72@2x.png, app\App_Resources\iOS\icon-76.png, app\App_Resources\iOS\icon-76@2x.png, app\App_Resources\iOS\icon-83.5@2x.png, app\App_Resources\iOS\Icon-Small-50.png, app\App_Resources\iOS\Icon-Small-50@2x.png, app\App_Resources\iOS\Icon-Small.png, app\App_Resources\iOS\Icon-Small@2x.png, app\App_Resources\iOS\icon.png, app\App_Resources\iOS\icon@2x.png, app\components\homeView\homeView-service.js, app\components\homeView\homeView-view-model.js, app\components\homeView\homeView.js, app\components\homeView\homeView.xml, app\fonts\kendoui.ttf, app\images\nativescript_logo.png, app\navigation\navigation-view-model.js, app\navigation\navigation.js, app\navigation\navigation.xml, app\utils\widgets\action-bar.js, app\utils\widgets\action-bar.xml, app\utils\widgets\button.android.xml, app\utils\widgets\button.ios.xml, app\utils\widgets\button.js, app\utils\widgets\helper.js, app\utils\widgets\navigation-property.js, NativeScriptAngular2TypeScriptHelloWorld.iceproj with root D:\Projekti\Tests\NativeScriptAngular2TypeScriptHelloWorld\NativeScriptAngular2TypeScriptHelloWorld.
[2016-10-11 21:22:45.490] Log (Info,Medium): Checking user identity
[2016-10-11 21:22:45.490] Log (Info,Medium): User logged in as admin@domerus.eu
[2016-10-11 21:22:47.915] Log (Info,Medium): Checking user identity
[2016-10-11 21:22:47.916] Log (Info,Medium): User logged in as admin@domerus.eu
[2016-10-11 21:22:47.917] Log (Info,Medium): Requesting LiveSync token.
[2016-10-11 21:22:48.132] Log (Info,Medium): Checking user identity
[2016-10-11 21:22:48.132] Log (Info,Medium): User logged in as admin@domerus.eu
[2016-10-11 21:22:48.136] Log (Info,High): Sending build request for project NativeScriptAngular2TypeScriptHelloWorld with parameters ProjectTypeGuids={F0A65104-D4F4-4012-B799-F612D75820F6}
Platform=Android
ProjectConfiguration=Debug
AcceptResults=Url;LocalPath
BuildConfiguration=debug
Framework=NativeScript
FrameworkVersion=2.2.0
LiveSyncToken=SkEtmcKNySq87FC0klHi+kNVaW3teGDtszy8H3s0JdpZsXbeOhbHSfy2l4/NB2YMDJhG0KvUanEziuOlti0dXkjb0vRCXZ91YeUuyhBMCvyC2FktZdTRfjujp0srwumATAhaj1wlNwQTzam8Qn7QLmMGFjTARMyvHskqhHte8LEK0lHm8zAKPZUlU4VWfTWsm4dPqSiUuXOFjSa49Lzdvw==.
[2016-10-11 21:22:49.165] Log (Exception,High): Server build failed. Server output: Project "NativeScriptAngular2TypeScriptHelloWorld.tmp.proj" (default targets):
Error: The "RequestBuild" task failed unexpectedly.
System.InvalidOperationException: The item metadata "%(FullPath)" cannot be applied to the path "Telerik.BlackDragon.Server.Communication.Storage.AmazonStorageService, Telerik.BlackDragon.Server.Communication". \\ab-storage\userdata\Private_Build_Folder\NativeScriptAngular2TypeScriptHelloWorld_1746854676\afbf4a5b5165\NativeScriptAngular2TypeScriptHelloWorld\Telerik.BlackDragon.Server.Communication.Storage.AmazonStorageService, Telerik.BlackDragon.Server.Communication
   at Microsoft.Build.Shared.ErrorUtilities.ThrowInvalidOperation(String resourceName, Object[] args)
   at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowInvalidOperation(Boolean condition, String resourceName, Object arg0, Object arg1, Object arg2)
   at Microsoft.Build.Shared.FileUtilities.ItemSpecModifiers.GetItemSpecModifier(String currentDirectory, String itemSpec, String modifier, String& fullPath)
   at Microsoft.Build.Evaluation.BuiltInMetadata.GetMetadataValueEscaped(String currentDirectory, String evaluatedIncludeBeforeWildcardExpansionEscaped, String evaluatedIncludeEscaped, String name, String& fullPath)
   at Microsoft.Build.Execution.ProjectItemInstance.TaskItem.GetBuiltInMetadataEscaped(String name)
   at Microsoft.Build.Execution.ProjectItemInstance.TaskItem.GetMetadataEscaped(String metadataName)
   at Microsoft.Build.Execution.ProjectItemInstance.TaskItem.GetMetadata(String metadataName)
   at Telerik.BlackDragon.Server.Tasks.Mobile.ConfigurableTask.<>c__DisplayClass7.<LoadServices>b__2(String name)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at Telerik.BlackDragon.Server.Tasks.Mobile.ConfigurableTask.LoadServices()
   at Telerik.BlackDragon.Server.Tasks.Mobile.RequestBuild.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
Done building project "NativeScriptAngular2TypeScriptHelloWorld.tmp.proj" -- FAILED.

0
Accepted
Tsvetina
Telerik team
answered on 17 Oct 2016, 07:30 AM
Hi Matjaž,

I see that you got the needed information in the ticket that you opened. I am copying the part of its reply relevant to the error message here, in case anyone else sees a similar error:

Regarding the error message, most likely it is related to this issue. Please, take a look at this KB article and make sure that your app does not contain fully qualified path names longer than 218 characters.


Regards,
Tsvetina
Telerik by Progress
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
AppBuilder extension for Visual Studio
Asked by
Seyfor
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Seyfor
Top achievements
Rank 1
Share this question
or