2015-11-05 78 views
0

我必須在我的android設備上測試我的混合移動應用程序,我在手機中選擇了「USB調試」,並選擇了「未知來源」選項,但是當我嘗試在我的移動部署我的應用程序我得到這個錯誤:無法在Android設備上部署我的AppBuilder項目

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. 

Build FAILED. 

我Telerik的-的AppBuilder的Visual Studio 2015年擴展(劍道的UI)我的Android手機是三星Galaxy星二重奏GT-S7262版本4.1.2工作 任何幫助,謝謝

更新:

我已經folloewed此鏈接[https://github.com/Telerik-Verified-Plugins/Mapbox],但我得到這個錯誤:1

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

當前工作目錄是不是基於科爾多瓦項目。

我已經安裝了科爾多瓦,插件與NPM,但我仍然得到問題:(

+0

'警告:未能安裝'cordova-plugin-mapbox':錯誤:變量缺失:ACCESS_TOKEN'什麼不清楚? – njzk2

+0

感謝njzk2,我認爲porblem來自訪問令牌,我應該使用它來使用地圖,但我應該爲每種類型的移動(IOS,Android,Windows Phone)都提供相同的access_token? – hanali

+0

我已經添加了Mapbox訪問令牌,但我仍然得到與我的設備相同的標誌:( – hanali

回答

2

所以現在的問題歸結爲:如何在Visual Studio你提供科爾多瓦變量插件

(您嘗試從c:/ users/admin文件夾中添加不是您的項目文件夾的插件,這就是爲什麼Cordova CLI說:「當前工作目錄不是基於Cordova的項目。」)

我假設你正在使用Visual Studio的AppBuilder擴展,如果是這樣,請閱讀本文檔,特別是關於如何配置變量: http://docs.telerik.com/platform/appbuilder/creating-your-project/using-plugins/using-verified-plugins/install-verified-plugins

+0

好的謝謝Eddy Verbruggen – hanali

相關問題