flutter在AS中拖动文件变更位置导致热加载无效,通过找原因,发现引入路径问题,只需要把引入路径由:
import 'file:///E:/flutter/maple_leaf/lib/device/page/device_page.dart';
变更为
import 'package:maple_leaf/device/page/device_page.dart';
问题即可解决.
flutter在AS中拖动文件变更位置导致热加载无效,通过找原因,发现引入路径问题,只需要把引入路径由:
import 'file:///E:/flutter/maple_leaf/lib/device/page/device_page.dart';
变更为
import 'package:maple_leaf/device/page/device_page.dart';
问题即可解决.
本文标题:Android Studio Flutter Hot Reloa
本文链接:https://www.haomeiwen.com/subject/vbgsfltx.html
网友评论