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

can't deploy my AppBuilder project on android device

2 Answers 93 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.
Imen
Top achievements
Rank 1
Imen asked on 06 Nov 2015, 10:23 AM

Hi,

I have to test my hybrid mobile application on my android device,I have selected "USB debugging" in my phone and I have selected the "Unknown sources" option,but when I try to deploy my application in my mobile I get this error:

 

I have installed npm package and git bash,​then I have followed this link​ https://github.com/Telerik-Verified-Plugins/Mapbox,but I get this error:

C:\Users\Admin>cordova plugin add https://github.com/Telerik-Verified-Plugins/Mapbox --variable ACCESS_TOKEN=my.access.token​

Current working directory is not a Cordova-based project.​

I work with Telerik-AppBuilder visual Studio 2015 extension(kendo-ui) my android phone is Samsung Galaxy Star Duos GT-S7262 version 4.1.2

any help please and thanks :)

 

  

 ​

2 Answers, 1 is accepted

Sort by
0
Imen
Top achievements
Rank 1
answered on 06 Nov 2015, 10:59 PM

this is the error that I get:

Building package: [D:\WebMobile\test\backupsProjetWebMobile2\KendoUITabStrip1\obj\Debug\MyProjet.zip]
        Project files uploaded to the cloud.
        Sending build request for project MyProjet with parameters ProjectTypeGuids={070BCB52-5A75-4F8C-A973-144AF0EAFCC9}
Platform=Android
Configuration=Debug
LiveSyncToken=5uW/86s7080iMfWs0yNn+vJIKWo6n1qh4Lpa8kEnoUNFIaJOOQSDimQ9e0N6ELxXgt2bTOb/Xp6eRqCttuaoxQCzlLku533tlF1hvwrKPpxPeX/CfV/aGFN8Wr6MJl4D.
C:\Users\Client\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\zc3hmmck.xbh\Targets\Build.targets(189,3): error : Server build failed. Server output: Project "MyProjet.tmp.proj" (default targets):
    android Build Tooling revision 2015.11.03.5r
    Warning: Failed to install 'cordova-plugin-mapbox':Error: Variable(s) missing: ACCESS_TOKEN
    at /home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/cordova-lib/cordova-lib/src/plugman/install.js:324:23
    at _fulfilled (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:749:13)
    at /home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:557:44
    at flush (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:419:13)
    Warning: Variable(s) missing: ACCESS_TOKEN
    Warning: /home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/bin/install-plugins-3.js:189
    Warning: throw Error("exit code: " + code);
                                  ^
    Warning: Error: exit code: 1
    at Error (<anonymous>)
    at ChildProcess.<anonymous> (/home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/bin/install-plugins-3.js:189:14)
    at ChildProcess.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:810:12)
    Error: Build failed during execution
    Error: 'Build failed with error code 8'
Done building project "MyProjet.tmp.proj" -- FAILED.
.
Done building project "MyProjet.iceproj" -- FAILED.
0
Kaloyan
Telerik team
answered on 11 Nov 2015, 09:13 AM
Hello Imen,

Thank you for contacting us about the issue. The build failure indicates that there is no access token seto for the installed MapBox plugin. If you are using the AppBuilder Extension for Visual Studio, you can follow the next steps in order to configure the MapBox plugin variable:
  1. Open your AppBuilder project in VS
  2. Open its Properties page and navigate to the Plugins tab.
  3. In the Other Plugins pane, you should have the MapBox plugin already installed. Click on the plus symbol and then select the Configure button for that plugin.
  4. A modal window about the MapBox plugin's variables should appear. Enter your MapBox access token there and close it.
  5. Try building the project again.

Further, you can check this article of our documentation about configuring plugin variables in your project. For the different AppBuilder clients (VSE, CLI, etc..) you can change the section from the upper right corner of the page. Also, I would suggest checking these articles about installing custom or Telerik Verified Cordova plugin in your AppBuilder project.

I hope this helps. Please, let me know if you will require further assistance.

Regards,
Kaloyan
Telerik
 

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
Imen
Top achievements
Rank 1
Answers by
Imen
Top achievements
Rank 1
Kaloyan
Telerik team
Share this question
or