GitHubPopular运行记录

时间:2023-12-31 08:18:08

运行前准备:

  1. Android SDK 23.0.3
    2.gradle-2.14.1-all 网盘地址

开始运行

按照项目描述中所说

  1. npm i ------- ok
  2. react-native run-android --------- Error

首先是gradle被墙解决
工作目录\GitHubPopular-master\android\gradle\wrapper\gradle-wrapper.properties文件修改gradle为离线下载:distributionUrl=file:///F:/gradle-2.14.1-all.zip
签名错误问题(A problem occurred starting process 'command 'security'')
工作目录\GitHubPopular-master\android\app\build.gradle修改def pass=getPassword(...) 为def pass='' 详见:https://github.com/crazycodeboy/GitHubPopular/issues/3

安装失败 INSTALL_CANCELED_BY_USER
在设置-安全中心-未知来源-》允许安装
内存不足 INSTALL_FAILED_INSUFFICIENT_STORAGE
卸载点东西就好

---------2019-02-28更新-------------
运行异常:SyntaxError: Strict mode does not allow function declarations in a lexically nested statement on a newly created app
去掉JS Dev Mode 选择,勾选JS Minify
GitHubPopular运行记录