添加一个资产文件夹中的机器人工作室 [英] Adding an assets folder in Android Studio

查看:124
本文介绍了添加一个资产文件夹中的机器人工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android的工作室又一次改变了项目结构......现在却是

Android Studio has changed its project structure yet again... now it is

project
---/app-module
   ---/manifests
   ---/res
   ---/java

我一直在寻找网上随处可见,但我找不到在哪里把资产的文件夹。当我尝试通过在Android的Studio中的目录浏览器创建的文件夹(单击鼠标右键,新建...目录)中的目录选项不可用。唯一可用的选项是:

I've been looking everywhere online, but I can't find where to put the assets folder. When I try to create the folder via the directory viewer in Android Studio (right-click, New... directory) the "directory" option is not available. The only available options are:

Java Class
File
Module
Package
Image Asset

其中没有会做什么,我想在这里。

None of which will do what I want here.

有没有人想通了这一点?

Has anyone figured this out?

推荐答案

您可以单击项目窗口,preSS的Alt-插入,然后选择文件夹 - >资产文件夹。 Android的Studio会自动添加到正确的位置。

You can click on the Project window, press Alt-Insert, and select Folder->Assets Folder. Android Studio will add it automatically to the correct location.

您最有可能寻找新(ISH)的项目的Andr​​oid浏览。请注意,这是一个查看并没有实际的文件在磁盘上的结构(其中自推出摇篮,作为新的构建工具并没有改变)。您可以通过在项目窗口,然后选择项目的顶部点击单词机器人切换到老项目视图。

You are most likely looking at your Project with the new(ish) "Android View". Note that this is a view and not the actual folder structure on disk (which hasn't changed since the introduction of Gradle as the new build tool). You can switch to the old "Project View" by clicking on the word "Android" at the top of the Project window and selecting "Project".

这篇关于添加一个资产文件夹中的机器人工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆