小编icy*_*erd的帖子

如何构建 flutter-debug.apk

我是初学者,我需要一些帮助。我想生成一个调试模式的flutter apk。当我运行“flutter build apk”时,它只生成 flutter-release.apk 文件,但我想生成最新代码的 flutter-debug.apk。非常感谢任何形式的帮助。

flutter flutter-apk

11
推荐指数
1
解决办法
1万
查看次数

异常:无法在 Flutter 中实例化图像编解码器

我正在开发一个小应用程序,它从互联网上获取图像并使用NetworkImage()小部件将其显示在屏幕上 。我的代码如下所示:

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: Text("I am Rich"),
        backgroundColor: Colors.blueGrey[900],
      ),
      backgroundColor: Colors.blueGrey[200],
      body: Center(
        child: Image(
          image: NetworkImage(
              'https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.w3schools.com%2Fw3css%2Fw3css_images.asp&psig=AOvVaw2IxwyCZa7VaOiLr2lA9R2d&ust=1584460177773000&source=images&cd=vfe&ved=2ahUKEwjS8NyhrJ_oAhXt7uAKHURADeMQjRx6BAgAEAc'),
        ),
      ),
    ),
  ));
}
Run Code Online (Sandbox Code Playgroud)

起初SocketException,我试图通过将代码行放在这里来解决这个问题

menifest.xml ss

现在,当我再次运行模拟器时,它以:

Performing hot restart...
Syncing files to device Android SDK built for x86...
Restarted application in 31,602ms.

???????? Exception caught by image resource service ????????????????????????????????????????????????
The following _Exception was thrown resolving an image codec:
Exception: Could not instantiate image codec.

When the …
Run Code Online (Sandbox Code Playgroud)

exception http dart android-studio flutter

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

flutter ×2

android-studio ×1

dart ×1

exception ×1

flutter-apk ×1

http ×1