无法在Android设备上部署我的AppBuilder项目

时间:2015-11-05 21:01:57

标签: android telerik-appbuilder

我必须在我的Android设备上测试我的混合移动应用程序,我在手机中选择了“USB调试”并且我选择了“未知来源”选项,但是当我尝试在我的手机中部署我的应用程序时,我得到了这个错误:

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扩展(kendo-ui)我的Android手机是三星Galaxy Star Duos GT-S7262版本4.1.2 请任何帮助,谢谢

更新

我已经关注了这个链接[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

当前工作目录不是基于Cordova的项目。

我已经用npm安装了cordova-plugins,但我仍然遇到了问题:(

1 个答案:

答案 0 :(得分:2)

所以问题归结为:在Visual Studio中如何为插件提供Cordova变量?

(您尝试在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