关于React Native 启动packager, 停留在Loading dependency graph, done.的问题
来源:互联网 发布:2016天猫双11实时数据 编辑:程序博客网 时间:2024/05/22 03:35
一. 查看端口占用(win7)
① 启动cmd
② 在CMD窗口中输入netstat -aon|findstr 80,80表示要查看的端口号。
③ 在CMD中继续输入以下命令:tasklist|findstr "892",892就是之前的进程ID
二. 切换react-native端口
①application或者主activity中做如下设置
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
private SharedPreferences mPreferences;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
mPreferences.edit().putString("debug_http_host","10.8.5.86:8089").commit();//pc端ip地址
}
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "AwesomeProject";
}
}
②adb reverse tcp:8089 tcp:8089
③ react-native start --port 8089
三. 关于React packager ready. Loading dependency graph, done.的问题
1.问题描述:
跟http://stackoverflow.com/questions/42094486/react-natives-awesomeproject-not-launching-how-to-debug类似,
开启packager后, 一直停留在
Loading dependency graph...
React packager ready.
Loading dependency graph, done.
没有继续执行.
2.问题查找
①按照一的步骤, 查看端口8081的占用情况, 发现被macFee占用
3. 问题解决-->切换端口
① 按照步骤二切换端口
②react-native run-android
③摇手机, 出弹窗, 选择Reload
0 1
- 关于React Native 启动packager, 停留在Loading dependency graph, done.的问题
- 关于React Native 启动packager, 停留在Loading dependency graph, done.的问题
- react native 更新后packager启动失败:SyntaxError: Unexpected token ...
- React-native android 启动遇到的问题
- Android启动react native服务报错:Ensure that the packager server is running
- Eclipse启动时,长时间停留在loading description for...的状态
- Eclipse启动无响应 停留在Loading workbench状态
- eclipse启动无响应,停留在Loading workbench状态
- eclipse启动无响应,停留在Loading workbench状态
- eclipse启动无响应,停留在Loading workbench状态
- Eclipse启动无响应 停留在Loading workbench状态
- eclipse启动无响应,停留在Loading workbench状态
- Eclipse启动无响应 停留在Loading workbench状态
- eclipse启动无响应,停留在Loading workbench状态
- Eclipse启动无响应 停留在Loading workbench状态
- eclipse启动无响应,停留在Loading workbench状态
- eclipse启动无响应,停留在Loading workbench状态
- eclipse启动无响应,停留在Loading workbench状态
- TensorFlow 变量共享
- 未来的路
- 数据结构之 JavaScript实现栈
- 限制ssh登陆用户目录及命令
- atexit函数
- 关于React Native 启动packager, 停留在Loading dependency graph, done.的问题
- 解决Gradle build finished with 744 error(s) in 4m 33s 896ms。同时加快build apk即生成app的过程
- PHP提示Notice: Undefined variable的解决办法
- 分机号
- Oracle 9i所有版本的最新下载地址(已验证!)
- CSS常见兼容性问题总结
- Codeforces 785C Anton and Fairy Tale 找规律 二分
- Git commit格式 详解
- 从 100 万个数里找出最大的前 100 个