[英]Missing most text on android emulator
So I'm running the following code and no text is displayed on the emulator screen, the example app showed absolutely no text on screen.所以我正在运行以下代码,模拟器屏幕上没有显示任何文本,示例应用程序在屏幕上绝对没有显示任何文本。 If I ran the app without a degugger attached, the text was there but disappeared when a refresh was made.
如果我在没有附加调试器的情况下运行应用程序,文本在那里但在刷新时消失了。
Same thing happens with API 24, 27, 28. On API 28 I didnt have any text in the home screen of the OS and sometimes half of the clock text was missing and half was there (like clock showed up as " :22" instead of "10:22"), app titles text under their icons was missing. API 24、27、28 也会发生同样的事情。在 API 28 上,我在操作系统的主屏幕中没有任何文本,有时时钟文本的一半丢失而另一半在那里(例如时钟显示为“:22”)的“10:22”),其图标下的应用程序标题文本丢失。
Tried reinstalling devices and downloading new images.尝试重新安装设备并下载新图像。 Same thing happens if running with xamarin.
如果使用 xamarin 运行,也会发生同样的事情。
Some images showcasing the problem: https://imgur.com/a/OigLsCE一些展示问题的图片: https : //imgur.com/a/OigLsCE
Has anyone had to deal with this before?有没有人以前处理过这个问题?
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Welcome to Flutter'),
),
body: Center(
child: Text('Hello World'),
),
),
);
}
}
So I'm running the following code and no text is displayed on the emulator screen, the example app showed absolutely no text on screen.因此,我正在运行以下代码,并且模拟器屏幕上没有显示任何文本,示例应用程序在屏幕上绝对没有显示文本。 If I ran the app without a degugger attached, the text was there but disappeared when a refresh was made.
如果我运行的应用程序没有附加防盗器,则文本在那里,但是刷新后消失了。
Same thing happens with API 24, 27, 28. On API 28 I didnt have any text in the home screen of the OS and sometimes half of the clock text was missing and half was there (like clock showed up as " :22" instead of "10:22"), app titles text under their icons was missing. API 24、27、28也会发生同样的事情。在API 28上,我在操作系统的主屏幕上没有任何文本,有时缺少一半的时钟文本,而有一半在那里(例如,时钟显示为“:22”的“ 10:22”),则缺少其图标下方的应用标题文本。
Tried reinstalling devices and downloading new images.尝试重新安装设备并下载新映像。 Same thing happens if running with xamarin.
如果使用xamarin运行,也会发生同样的事情。
Some images showcasing the problem: https://imgur.com/a/OigLsCE一些图片展示了这个问题: https : //imgur.com/a/OigLsCE
Has anyone had to deal with this before?以前有人要处理吗?
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Welcome to Flutter'),
),
body: Center(
child: Text('Hello World'),
),
),
);
}
}
Try changing the renderer in the emulator settings: https://i.imgur.com/zdifNcf.png尝试在模拟器设置中更改渲染器: https : //i.imgur.com/zdifNcf.png
answer from https://www.reddit.com/r/androiddev/comments/dc8n2a/missing_text_in_android_emulator/f29dk6z?utm_source=share&utm_medium=web2x&context=3来自https://www.reddit.com/r/androiddev/comments/dc8n2a/missing_text_in_android_emulator/f29dk6z?utm_source=share&utm_medium=web2x&context=3 的回答
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.