Flutter Hot Reloading无法在Android Studio中工作(Mac) [英] Flutter Hot reloading not working in android studio(mac)
问题描述
在Mac机上工作时,我发现热重装在Android Studio中不起作用.我不知道怎么了:)
While working on mac machine I found that hot reloading not working in Android Studio. I don't know what's wrong :)
这是不重新加载的代码(我将 Hello world 文本更改为 Flutter Sample 文本)
Here is the code which not reloading(I am changing the Hello world text to Flutter Sample text)
import 'package:flutter/material.dart';
void main() {
runApp(new MaterialApp(
home: new Scaffold(
appBar: new AppBar(
title: new Text("Demo Project"),
),
body: Center(child: new Text("Hello World!!!")),
),
));
}
请在下面的视频中查看此链接 https://www.dropbox.com/s/e7viujcgv8w0mtr/hot_reload.mp4 ?dl = 0
Please see this below video with the link https://www.dropbox.com/s/e7viujcgv8w0mtr/hot_reload.mp4?dl=0
这并不能阻止我的发展,但是我担心它为什么会发生.
This not stop my development, But I am concerned why it is happening.
推荐答案
这就是您要寻找的
在文件"->设置"->键盘映射"中,您应该分配一些按键快捷方式来实现.默认为 Ctrl + \
In File -> Settings -> Keymap, you should assign some key shortcut for that to happen. Default it will be Ctrl+\
这篇关于Flutter Hot Reloading无法在Android Studio中工作(Mac)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!