【问题标题】:Android Studio Launcher Icon - Icon Name Must Be SetAndroid Studio 启动器图标 - 必须设置图标名称
【发布时间】:2019-02-27 11:17:07
【问题描述】:

我现在正在开发一个 Flutter 应用程序并尝试将 Android 应用程序的图标更改为 .png 图像。在 Android Studio 上,当我执行 File -> New -> Image Asset 时出现此错误:

有什么帮助吗?

【问题讨论】:

    标签: android android-studio flutter android-icons


    【解决方案1】:

    在你pubspec.yaml文件中添加这个,

    dev_dependencies: 
      flutter_test:
        sdk: flutter
    
      flutter_launcher_icons: "^0.6.1"
    
    flutter_icons:
      android: true 
      ios: "Example-Icon"
      image_path: "assets/icon/icon.png"
      image_path_android: "assets/icon/icon_android.png"
      image_path_ios: "assets/icon/icon_ios.png"
      adaptive_icon_background: "#FFFAFAFA"
      adaptive_icon_foreground: "assets/icon/icon-foreground.png"
    

    更多信息可以找到here

    【讨论】:

      猜你喜欢
      • 2019-02-22
      • 1970-01-01
      • 1970-01-01
      • 2014-11-19
      • 2019-07-12
      • 1970-01-01
      • 2016-04-26
      • 2014-12-04
      • 2012-09-27
      相关资源
      最近更新 更多