V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
hushulin
V2EX  ›  Flutter

flutter build apk 时出现 Error: The argument type 'String' can't be assigned to the parameter type 'Uint8List'.

  •  
  •   hushulin · 2021-05-09 22:46:06 +08:00 · 1011 次点击
    这是一个创建于 1293 天前的主题,其中的信息可能已经有所发展或是发生改变。
    不知道是我代码问题还是版本问题
    [✓] Flutter (Channel unknown, 1.22.6, on Linux, locale en_US.UTF-8)
    • Flutter version 1.22.6 at /sdks/flutter
    • Framework revision 9b2d32b605 (4 months ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5


    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /opt/android-sdk-linux
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /opt/android-sdk-linux
    • ANDROID_SDK_ROOT = /opt/android-sdk-linux
    • Java binary at: /usr/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_265-8u265-b01-0ubuntu2~20.04-b01)
    • All Android licenses accepted.

    [!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
    (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

    [!] Connected device
    ! No devices available

    ! Doctor found issues in 2 categories.
    AoEiuV020
        1
    AoEiuV020  
       2021-05-17 15:28:44 +08:00
    这种报错应该有精确到行才对,楼主已经解决了吧,
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2642 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 11:17 · PVG 19:17 · LAX 03:17 · JFK 06:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.