gpt4 book ai didi

android-studio - 如何访问 "Configure Image Asset"

转载 作者:行者123 更新时间:2023-12-04 14:18:18 28 4
gpt4 key购买 nike

我想使用“Image Asset Studio”操作我的应用程序图标,通常我通过关注 these instructions 来启动它。 :

1- 在项目窗口中,选择 Android View 。

2- 右键单击​​ 资源 文件夹并选择 新建 > 图像资源 ...

所以我到达了这个窗口:

enter image description here

但出于某种原因我没有看到这个选项“图像 Assets ”在“新建”菜单中。

NOTE: If I create a new project then I can see "New > Image Asset" normally.



更新 :

我正在点击这个目录。
enter image description here

我在 上运行这个 android studio Ubuntu 18.04 :

Android Studio 3.5 Build #AI-191.8026.42.35.5791312, built on August 9, 2019 JRE: 1.8.0_202-release-1483-b49-5587405 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 4.15.0-62-generic



enter image description here

最佳答案

实际上有 an issue filed in GitHub 与此相关。
在您的情况下,您似乎将 Flutter 项目视为常规的 Android 项目。 AFAIK,Flutter 项目不是 Android 项目。
所以 one of the workaround 也可用:

open android studio File->Open folder->navigate to your flutterproject and select the Android folder. Wait for it to sync, thennavigate inside the Android studio folder and find the res folderright click on it and choose New you will see the Image asset studio.


还要注意 this :

don't open the whole project of flutter using Android studio just openthe android folder found inside the flutter project with Androidstudio, so the Android studio can treat it as a Android project ratherthan flutter project, which will give you all Android features likethe one ur looking for #image asset studio


您还可以查看 this blog post 以了解如何更改 Flutter 应用程序图标。而这个 YouTube video 。你只需要你想要的图标和 App Icon Generator 图像。
总结一下博客中写的内容和 YouTube 帖子中讨论的内容,以下是您需要遵循的简单步骤:
第1步: 访问 appicon.co并上传您想要的图像以转换为图标,选择您要生成的类型并单击“生成”。这会将 zip 文件夹下载到您的系统。 (如果您已准备好所有解决方案,则可以跳过此步骤。)
enter image description here
第 2 步: 解压缩文件。您将拥有两个名为“android”和“Assets.xcassets”的文件夹。
enter image description here
enter image description here
第 3 步: 更改 Android 应用程序的图标。
在你的 Flutter 项目中,移动到 android/app/src/main/res ,其中有很多以“mipmap-”开头的文件夹。删除所有这些。并从您下载并解压缩的 AppIcons 文件夹中替换 android 下的所有内容。
enter image description here

关于android-studio - 如何访问 "Configure Image Asset",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57939659/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com