This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 适配 | |
| ```javascript | |
| /** | |
| * Created by vision on 2018/9/12. | |
| */ | |
| "use strict" | |
| import {Dimensions, StatusBar, Platform, PixelRatio} from 'react-native' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 使用teaset组件NavigationBar | |
| ```javascript | |
| import React from 'react'; | |
| import { withNavigation } from 'react-navigation'; | |
| import {NavigationBar,Toast} from "teaset" | |
| import observablemessagetime from '../../Mobx/messageTime' | |
| import ShopsCartStore from "../../Mobx/ShoppingCartStore" | |
| import observableOrder from '../../Mobx/ConfirmOrderStore' | |
| import {inject, observer} from "mobx-react"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 使用适配 | |
| ```javascript | |
| "use strict"; | |
| import React, {Component} from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { | |
| Text, | |
| View, | |
| Image, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 装jdk,配置环境变量 | |
| ### 安装Android的sdk,配置环境变量 | |
| ```html | |
| 第一步:填加系统环境变量ANDROID_HOME,值为 Android skd的安装路径,: G:\Android\android-sdk | |
| 第二步:修改Path | |
| ;%ANDROID_HOME%\tools | |
| ;%ANDROID_HOME%\platform-tools | |
| ``` | |
| ### 修改镜像地址 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```language | |
| 修改 android.bat,直接指定java.exe所在位置, | |
| 不用去调用find_java.bat将 | |
| rem Check we have a valid Java.exe in the path. | |
| 这行下面的set java_exe= | |
| 改为set java_exe= | |
| "D:\Program Files\Java\jdk1.7.0_07\bin\java.exe" | |
| (java.exe的所在位置) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 使用AS编译时 | |
| ```language | |
| ,报Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concur | |
| 这是因为在project中导入了大量的第三方包,导致内存过大,在编译的时候出现的OOM, | |
| 解决方式 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 集成移动数据分析SDK后与支付宝SDK发生符号冲突 | |
| - 最近做app使用了支付宝支付和阿里移动推送服务,sdk冲突编译一直失败 | |
| ```language | |
| 解决方案就是移除旧包,去下面链接下载新的sdk,重新编译,OK! | |
| ``` | |
| [https://docs.open.alipay.com/54/104509](https://docs.open.alipay.com/54/104509) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 1.修改 gradle.properties | |
| ```language | |
| 使用gradlew.bat assembleRelease --console plain无法打包 | |
| 观察报错内容,其中有 > Connect to 127.0.0.1:80 [/127.0.0.1] failed: Connection refused: connect,第一反映是网络代理问题,于是找到 系统盘符:\Users\管理员用户名\.gradle 文件夹中的 gradle.properties 文件,将其中的代理相关设置,用 # 注释掉。 | |
| # systemProp.http.proxyHost=127.0.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### 安装配置 | |
| - [https://www.cnblogs.com/yanglh6-jyx/p/Android_AS_Configuration.html](https://www.cnblogs.com/yanglh6-jyx/p/Android_AS_Configuration.html) | |
| - [https://www.cnblogs.com/xiadewang/p/7820377.html](https://www.cnblogs.com/xiadewang/p/7820377.html) | |
| - [https://blog.csdn.net/m0_37711172/article/details/79752366](https://blog.csdn.net/m0_37711172/article/details/79752366) | |
| - [https://www.cnblogs.com/morlin/p/4603768.html](https://www.cnblogs.com/morlin/p/4603768.html) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 苹果系统还原(注:要用电脑打开连接) [苹果系统还原(注:要用电脑打开连接) http://v.youku.com/v_show/id_XODE5MDM1NzMy.htm](http://v.youku.com/v_show/id_XODE5MDM1NzMy.htm) |