React-native run-android 花费太多时间 [英] React-native run-android take too much time

查看:85
本文介绍了React-native run-android 花费太多时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Windows,并且自 2 周以来一直在使用 react-native.但是现在,在我的设备上运行我的应用程序需要太多时间.

I'm on Windows and i'm working with react-native since 2 weeks. But now, it takes too much time to run my application on my devices.

Scanning 835 folders for symlinks in D:\workspace\react-
native\MonCompte\node_modules (31ms)
Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat 
installDebug)...
> Configuring > 3/5 projects > Resolving dependencies ':app:_debugApk' > 
Resolving dependencies ':react-native-vector-icons:_releaseCompile'

此时似乎冻结"了.25 多分钟后,它终于构建了!

It seems to "freeze" at this point. After more than 25 minutes it finally builds !

有人有想法吗?谢谢 !

Is someone have an idea please? Thanks !

推荐答案

于是我终于找到了解决方案.

So I finally found a solution.

这是因为我的代理不在 gradle.properties 文件中!

It was because my proxy wasn't in the gradle.properties file !

systemProp.http.proxyHost=http://myproxy.proxy
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=http://myproxy.proxy
systemProp.https.proxyPort=8080

这篇关于React-native run-android 花费太多时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆