Flutter初探--常见问题汇总

1. iOS热重载失效 Error 105 received from application: Isolate must be runnable

Error 105 received from application: Isolate must be runnable
Hot reload received invalid response: {code: 105, message: Isolate must be runnable, data: {request: {method: _reloadSources, params: {pause: false, rootLibUri:
file:///Users/edz/Library/Developer/CoreSimulator/Devices/74C78E3B-0DEA-4D2B-8442-95F415EF0F14/data/Containers/Data/Application/8A1C31EC-7229-4B50-AE5F-88C223BCCF50/tmp/flutter_mixedAeuAuy/flutter_mixed/li
b/main.dart.incremental.dill, packagesUri:
file:///Users/edz/Library/Developer/CoreSimulator/Devices/74C78E3B-0DEA-4D2B-8442-95F415EF0F14/data/Containers/Data/Application/8A1C31EC-7229-4B50-AE5F-88C223BCCF50/tmp/flutter_mixedAeuAuy/flutter_mixed/.p
ackages, isolateId: isolates/3504661799683503}}, details: Isolate must be runnable before this request is made.}}

原因:flutter sdk自身bug
解决:升级flutter版本至1.2.22后该问题消失(可能flutter 1.2等版本已修复该问题)

2. flutter包管理命令执行失败

Waiting for another flutter command to release the startup lock

解决:移除 flutter_sdk目录下 /bin/cache/lockfile文件即可

你可能感兴趣的:(Flutter初探--常见问题汇总)