1. **生成Android**
在项目中的命令行输入
```
weex platform add android
```
在andriod studio中打开模拟器,然后运行以下命令
```
weex run android
```
```
```
>[danger]执行该步骤的前提是安装Android studio,安装过JDK,配置完环境变量
****
****
2. **使用Android studio打开**
可见在当前weex项目中的platforms文件夹下生成一个Android项目
使用Android studio打开该文件

****
3. **等待一系列安装乱七八糟的之后,显示如下就可以正常运行**

****
**当然它很有可能不会这么顺利,它会报错报错报错!!!😡来了,错误汇总!!!**
>[danger]1. no toolchains巴拉巴拉 少文件七了八的
移步这位大哥@[CodeForCoffee](https://blog.csdn.net/qq_24118527/article/details/82867864)
>[success]2. ERROR: The versions of the Android Gradle plugin and Gradle are not compatible. Please do one of the
走@[lvxiangan](https://blog.csdn.net/lvxiangan/article/details/78953921)

>[warning]3. Cannot set the value of read-only property 'outputFile' for ApkVariantOutputImpl_Decorated……
移步另一个大哥@[Paweł Nadolski](https://stackoverflow.com/questions/44239235/android-gradle-3-0-0-alpha2-plugin-cannot-set-the-value-of-read-only-property)

即
```
android.applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "${variant.name}-${variant.versionName}.apk"
}
}
```
>[info]4. Error:Execution failed for task ':app:javaPreCompileDebug'.Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration. - weexplugin-processor\-1.3.jar (com.taobao.android:weexplugin-processor:1.3)
[请走](https://www.jianshu.com/p/601daa5aed8d)

```
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
}
}
```
****
****
4. **在手机上打开开发者模式**
百度一下
[oppo手机](https://jingyan.baidu.com/article/91f5db1b1d51be1c7e05e35f.html)
****
5. **Android studio打包该文件**

在该文件目录下的app-->build-->outputs-->apk-->debug下能看到该文件
发送至手机,安装,打开,可以看到hello world
****
**到此,初次血泪之旅结束,拜拜!**
- vs code 所需插件
- 新建项目基础配置
- 新项目初始化
- 项目打包上传
- 适配
- vue-vw
- vue-rem
- 基础
- 跳转
- 循环
- 样式
- 组件
- 子组件自定义事件向父组件传参
- 兄弟组件之间传参(含vuex)
- 实例:实现子组件word、list之间的参数传递
- 父子组件
- vuex的使用
- 精简版(不经过action)
- 组件实例(axios+http)
- axios读取网络数据
- MovieItem组件
- swiper
- better-scroll
- position:fixed搭配使用
- 数据绑定
- 计算属性
- 计算属性(computed)与监听属性(watch)搭配使用
- 侦听
- 动画
- 原理
- 使用iconfont
- 雪碧图
- 插槽
- @import引入外部样式
- 路径配置
- ref属性
- 显示隐藏的控制
- 生命周期
- 数据请求
- vuex
- 小效果
- 1.下滑顶部标题显示
- 2.在页面初始时加入动画效果
- 小项目
- Vue搜索功能
- Vue电影数据获取渲染
- Vue-travel
- main.js
- HTTP.js
- Head.vue
- swiper.js
- Home.vue
- 小技巧
- 1.阻止双击页面图片放大
- 2.缓存设置
- 3.跳转页面后从顶部开始显示
- 4.打包
- 5.使用store.js中的数据
- 使用库
- vant
- vant-list
- weex(实现vue代码编写Android软件)
- 1.启动项目
- 2.搭配Android studio
- vuex
- 1.State
- 2.Getter
- 3.Mutation
- 注
- 使用echarts
- echarts更换主题
