weex Android

```
weex run android
? This command need to install weexpack. Install now? Yes
{ Error: Cannot find module '../src/run/Web'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/zhongwei/.xtoolkit/node_modules/weexpack/bin/weexpack-run:7:16)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3) code: 'MODULE_NOT_FOUND' }
```vue

```
$ weex platform add android
Error: Current working directory is not a weexpack project.
```node

> 我的理解weex-toolkit能够用来开发时调试,weexpack用做打包,可是怎么把weex-toolkit开发完成的文件放进weexpack进行打包呢android

> 你只须要把你的vue 或者 .we文件放到src下面。ios

> 使用weex-toolkit脚手架的init是初始化一个vue project,而create才是初始化一个weexpack project。请确认一下使用方式,而后我的推荐工程使用vue去构建。git

原来 weex init 与 weex create 建立的项目是有区别的github

- weex init 建立的是 vue project
- weex create 建立的是 weexpack project segmentfault


## 参考
- [Native Mobile Apps with Weex and VueJS 2.0 – Hacker Noon](https://hackernoon.com/how-to-create-a-weex-vue2-project-6b94981bee4e)
- [weex init 建立的项目如何打包到真机? · Issue #83 · weexteam/weex-toolkit](https://github.com/weexteam/weex-toolkit/issues/83)
- [weex-plugins/amap-running-app: a demo running app for weex-amap](https://github.com/weex-plugins/amap-running-app)
- [使用weex-toolkit建立工程后执行weex platform add ios报错 - SegmentFault](https://segmentfault.com/q/1010000008771985)
- [weex 学习日记 第三天 (大概是安卓打包的事最终版) - weexhelp](http://weex.help/topic/58dcbbf22668808722df284f)weex

相关文章
相关标签/搜索