Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Android Studio 中添加一个资产文件夹,但这不是我的选择。当我进入 android 视图并尝试创建一个新文件夹时,我只会看到这些选项。 我发现的另一个答案是转到包视图;但是,我无法从那里看到我的项目目录。有谁知道将其添加为选项的方法?谢谢!
右键单击 app 文件夹,转到New> Folder> Assets Folder。 Android Studio 将打开一个对话框。保持所有设置默认。在目标源集下,应选择选项main 。并单击完成。
我解决了这个问题。我的 gradle 文件没有更新,我需要同步依赖项。一旦这样做,我就会看到创建资产文件夹的选项。