续上篇配置Gradle 国内镜像源: 全局配置&单独配置添加完镜像之后,仍旧无法正常下载包.. 报 Could not resolve ...
或者是 Could not GET ...
诸如此类。报错信息的最后一条还有 Connect to 127.0.0.1:1080 [/127.0.0.1] failed: Connection refused: connect
。 我想了想也许是Gradle 开了代理, 百度了一下,找到此解决方案:Android Studio Could not GET gradle-3.2.0.pom (安卓包配置相关问题) 。按照文章指示将gradle.properties
配置文件中的代理配置关掉了(在代理配置信息行前加#
)。
# systemProp.https.proxyPort=1080
# systemProp.http.proxyHost=127.0.0.1
# systemProp.https.proxyHost=127.0.0.1
# systemProp.http.proxyPort=1080
关掉后似乎是解决包下载的问题了,然而又报了内存溢出的问题..
c:\b\s\w\ir\cache\builder\src\third_party\dart\runtime\vm\zone.cc: 90: error: Out of memory.
version=2.7.0 (Mon Dec 2 20:10:59 2019 +0100) on "windows_x64"
thread=10884, isolate=main(000001A353073080)
pc 0x00007ff660a84adb fp 0x0000008047cfc470 Unknown symbol
-- End of DumpStackTrace
[exit : sp(0) fp(0x8047cfda78) pc(0)]
[stub : sp(0x8047cfda88) fp(0x8047cfdaa8) pc(0x1a353200b94)]
[dart : sp(0x8047cfdab8) fp(0x8047cfdb00) pc(0x1a356854f91) dart:core__RegExp@0150898_hasMatch ]
[dart : sp(0x8047cfdb10) fp(0x8047cfdb60) pc(0x1a36009c571) package:flutter_tools/src/android/gradle.dart_::_buildGradleApp__async_op_consumeLog ]
[dart : sp(0x8047cfdb70) fp(0x8047cfdbb8) pc(0x1a36009c17f) package:flutter_tools/src/base/process.dart__DefaultProcessUtils@69014270_stream__async_op_<anonymous closure> ]
[dart : sp(0x8047cfdbc8) fp(0x8047cfdc38) pc(0x1a35bab1f5f) dart:async_::__rootRunUnary@9048458 ]
[dart : sp(0x8047cfdc48) fp(0x8047cfdcb0) pc(0x1a35bab1d6b) dart:async_::__rootRunUnary@9048458__rootRunUnary@9048458 ]
[dart : sp(0x8047cfdcc0) fp(0x8047cfdd58) pc(0x1a35bab1627) dart:async__CustomZone@9048458_runUnary ]
[dart : sp(0x8047cfdd68) fp(0x8047cfdde8) pc(0x1a35d6e228f) dart:async__CustomZone@9048458_runUnaryGuarded ]
[dart : sp(0x8047cfddf8) fp(0x8047cfde40) pc(0x1a35d6e1f89) dart:async__BufferingStreamSubscription@9048458__sendData@9048458 ]
[dart : sp(0x8047cfde50) fp(0x8047cfde80) pc(0x1a35e982eba) dart:async__BufferingStreamSubscription@9048458__add@9048458 ]
[dart : sp(0x8047cfde90) fp(0x8047cfdec0) pc(0x1a360098bb0) dart:async__ForwardingStreamSubscription@9048458__add@9048458 ]
[dart : sp(0x8047cfded0) fp(0x8047cfdf30) pc(0x1a36009b95b) dart:async__WhereStream@9048458__handleData@9048458 ]
[dart : sp(0x8047cfdf40) fp(0x8047cfdf78) pc(0x1a3600984fd) dart:async__ForwardingStreamSubscription@9048458__handleData@9048458 ]
[dart : sp(0x8047cfdf88) fp(0x8047cfdfc8) pc(0x1a360098297) dart:async__ForwardingStreamSubscription@9048458__handleData@9048458__handleData@9048458 ]
[dart : sp(0x8047cfdfd8) fp(0x8047cfe048) pc(0x1a35bab1f5f) dart:async_::__rootRunUnary@9048458 ]
[dart : sp(0x8047cfe058) fp(0x8047cfe0c0) pc(0x1a35bab1d6b) dart:async_::__rootRunUnary@9048458__rootRunUnary@9048458 ]
[dart : sp(0x8047cfe0d0) fp(0x8047cfe168) pc(0x1a35bab1627) dart:async__CustomZone@9048458_runUnary ]
[dart : sp(0x8047cfe178) fp(0x8047cfe1f8) pc(0x1a35d6e228f) dart:async__CustomZone@9048458_runUnaryGuarded ]
[dart : sp(0x8047cfe208) fp(0x8047cfe250) pc(0x1a35d6e1f89) dart:async__BufferingStreamSubscription@9048458__sendData@9048458 ]
[dart : sp(0x8047cfe260) fp(0x8047cfe290) pc(0x1a35e982eba) dart:async__BufferingStreamSubscription@9048458__add@9048458 ]
[dart : sp(0x8047cfe2a0) fp(0x8047cfe2d0) pc(0x1a35e985ea6) dart:async__SinkTransformerStreamSubscription@9048458__add@9048458 ]
[dart : sp(0x8047cfe2e0) fp(0x8047cfe310) pc(0x1a35e985afa) dart:async__EventSinkWrapper@9048458_add ]
[dart : sp(0x8047cfe320) fp(0x8047cfe350) pc(0x1a35e9857e0) dart:convert__StringAdapterSink@10003594_add ]
[dart : sp(0x8047cfe360) fp(0x8047cfe3b0) pc(0x1a35faaf13a) dart:convert__LineSplitterSink@10003594__addLines@10003594 ]
[dart : sp(0x8047cfe3c0) fp(0x8047cfe400) pc(0x1a35faaebe3) dart:convert__LineSplitterSink@10003594_addSlice ]
[dart : sp(0x8047cfe410) fp(0x8047cfe458) pc(0x1a35faae74c) dart:convert_StringConversionSinkMixin_add ]
[dart : sp(0x8047cfe468) fp(0x8047cfe4c0) pc(0x1a35e984af3) dart:async__SinkTransformerStreamSubscription@9048458__handleData@9048458 ]
[dart : sp(0x8047cfe4d0) fp(0x8047cfe510) pc(0x1a35e984857) dart:async__SinkTransformerStreamSubscription@9048458__handleData@9048458__handleData@9048458 ]
[dart : sp(0x8047cfe520) fp(0x8047cfe590) pc(0x1a35bab1f5f) dart:async_::__rootRunUnary@9048458 ]
[dart : sp(0x8047cfe5a0) fp(0x8047cfe608) pc(0x1a35bab1d6b) dart:async_::__rootRunUnary@9048458__rootRunUnary@9048458 ]
[dart : sp(0x8047cfe618) fp(0x8047cfe6b0) pc(0x1a35bab1627) dart:async__CustomZone@9048458_runUnary ]
[dart : sp(0x8047cfe6c0) fp(0x8047cfe740) pc(0x1a35d6e228f) dart:async__CustomZone@9048458_runUnaryGuarded ]
[dart : sp(0x8047cfe750) fp(0x8047cfe798) pc(0x1a35d6e1f89) dart:async__BufferingStreamSubscription@9048458__sendData@9048458 ]
[dart : sp(0x8047cfe7a8) fp(0x8047cfe7d8) pc(0x1a35e982eba) dart:async__BufferingStreamSubscription@9048458__add@9048458 ]
[dart : sp(0x8047cfe7e8) fp(0x8047cfe818) pc(0x1a35e985ea6) dart:async__SinkTransformerStreamSubscription@9048458__add@9048458 ]
[dart : sp(0x8047cfe828) fp(0x8047cfe858) pc(0x1a35e985afa) dart:async__EventSinkWrapper@9048458_add ]
[dart : sp(0x8047cfe868) fp(0x8047cfe898) pc(0x1a35e9857e0) dart:convert__StringAdapterSink@10003594_add ]
[dart : sp(0x8047cfe8a8) fp(0x8047cfe8e0) pc(0x1a35faae441) dart:convert__StringAdapterSink@10003594_addSlice ]
[dart : sp(0x8047cfe8f0) fp(0x8047cfe940) pc(0x1a35faadde7) dart:convert__Utf8ConversionSink@10003594_addSlice ]
[dart : sp(0x8047cfe950) fp(0x8047cfe998) pc(0x1a35faadbde) dart:convert__Utf8ConversionSink@10003594_add ]
[dart : sp(0x8047cfe9a8) fp(0x8047cfe9d8) pc(0x1a35e984e6a) dart:convert__ConverterStreamEventSink@10003594_add ]
[dart : sp(0x8047cfe9e8) fp(0x8047cfea40) pc(0x1a35e984af3) dart:async__SinkTransformerStreamSubscription@9048458__handleData@9048458 ]
[dart : sp(0x8047cfea50) fp(0x8047cfea90) pc(0x1a35e984857) dart:async__SinkTransformerStreamSubscription@9048458__handleData@9048458__handleData@9048458 ]
[dart : sp(0x8047cfeaa0) fp(0x8047cfeb10) pc(0x1a35bab1f5f) dart:async_::__rootRunUnary@9048458 ]
[dart : sp(0x8047cfeb20) fp(0x8047cfeb88) pc(0x1a35bab1d6b) dart:async_::__rootRunUnary@9048458__rootRunUnary@9048458 ]
[dart : sp(0x8047cfeb98) fp(0x8047cfec30) pc(0x1a35bab1627) dart:async__CustomZone@9048458_runUnary ]
[dart : sp(0x8047cfec40) fp(0x8047cfecc0) pc(0x1a35d6e228f) dart:async__CustomZone@9048458_runUnaryGuarded ]
[dart : sp(0x8047cfecd0) fp(0x8047cfed18) pc(0x1a35d6e1f89) dart:async__BufferingStreamSubscription@9048458__sendData@9048458 ]
[dart : sp(0x8047cfed28) fp(0x8047cfed58) pc(0x1a35e982eba) dart:async__BufferingStreamSubscription@9048458__add@9048458 ]
[dart : sp(0x8047cfed68) fp(0x8047cfed98) pc(0x1a35e982b7a) dart:async__SyncStreamController@9048458__sendData@9048458 ]
[dart : sp(0x8047cfeda8) fp(0x8047cfedd8) pc(0x1a35d6df466) dart:async__StreamController@9048458__add@9048458 ]
[dart : sp(0x8047cfede8) fp(0x8047cfee18) pc(0x1a35d6deff9) dart:async__StreamController@9048458_add ]
[dart : sp(0x8047cfee28) fp(0x8047cfee68) pc(0x1a35e9833f1) dart:io__Socket@15069316__onData@15069316 ]
[dart : sp(0x8047cfee78) fp(0x8047cfeeb8) pc(0x1a35e983207) dart:io__Socket@15069316__onData@15069316__onData@15069316 ]
[dart : sp(0x8047cfeec8) fp(0x8047cfef38) pc(0x1a35bab1fdd) dart:async_::__rootRunUnary@9048458 ]
[dart : sp(0x8047cfef48) fp(0x8047cfefb0) pc(0x1a35bab1d6b) dart:async_::__rootRunUnary@9048458__rootRunUnary@9048458 ]
[dart : sp(0x8047cfefc0) fp(0x8047cff058) pc(0x1a35bab1627) dart:async__CustomZone@9048458_runUnary ]
[dart : sp(0x8047cff068) fp(0x8047cff0e8) pc(0x1a35d6e228f) dart:async__CustomZone@9048458_runUnaryGuarded ]
[dart : sp(0x8047cff0f8) fp(0x8047cff140) pc(0x1a35d6e1f89) dart:async__BufferingStreamSubscription@9048458__sendData@9048458 ]
[dart : sp(0x8047cff150) fp(0x8047cff180) pc(0x1a35e982eba) dart:async__BufferingStreamSubscription@9048458__add@9048458 ]
[dart : sp(0x8047cff190) fp(0x8047cff1c0) pc(0x1a35e982b7a) dart:async__SyncStreamController@9048458__sendData@9048458 ]
[dart : sp(0x8047cff1d0) fp(0x8047cff200) pc(0x1a35d6df466) dart:async__StreamController@9048458__add@9048458 ]
[dart : sp(0x8047cff210) fp(0x8047cff240) pc(0x1a35d6deff9) dart:async__StreamController@9048458_add ]
[dart : sp(0x8047cff250) fp(0x8047cff290) pc(0x1a35e9828dc) dart:io__RawSocket@15069316__RawSocket@15069316._<anonymous closure> ]
[dart : sp(0x8047cff2a0) fp(0x8047cff2c8) pc(0x1a35683d087) dart:core__Closure@0150898_call ]
[dart : sp(0x8047cff2d8) fp(0x8047cff320) pc(0x1a35c7f62b4) dart:io__NativeSocket@15069316_issueReadEvent_issue ]
[dart : sp(0x8047cff330) fp(0x8047cff360) pc(0x1a35baae3e1) dart:async_::__microtaskLoop@9048458 ]
[dart : sp(0x8047cff370) fp(0x8047cff3a0) pc(0x1a35baadfab) dart:async_::__startMicrotaskLoop@9048458 ]
[dart : sp(0x8047cff3b0) fp(0x8047cff3e0) pc(0x1a35baadea7) dart:async_::__startMicrotaskLoop@9048458__startMicrotaskLoop@9048458 ]
[dart : sp(0x8047cff3f0) fp(0x8047cff420) pc(0x1a35baadcaa) dart:isolate_::__runPendingImmediateCallback@1026248 ]
[dart : sp(0x8047cff430) fp(0x8047cff448) pc(0x1a35683a78d) dart:isolate__RawReceivePortImpl@1026248__handleMessage@1026248 ]
[entry : sp(0x8047cff458) fp(0x8047cff568) pc(0x1a353201015)]
Exited (3221226505)