简体   繁体   English

Android studio无法将文件粘贴到资源文件夹

[英]Android studio unable to paste files to assets folder

So I want to use some fonts but when I try to paste the ttf files into a fonts folder that I have in the assets folder, it just does not do anything. 所以我想使用一些字体但是当我尝试将ttf文件粘贴到我在assets文件夹中的字体文件夹中时,它只是没有做任何事情。 And yes, I am sure that I copied the files. 是的,我确信我复制了这些文件。

Nevigate to the assets folder in file explorer. Nevigate到文件资源管理器中的assets文件夹。 It will be at you_app_folder/app/src/main/assets/fonts 它将在you_app_folder / app / src / main / assets / fonts中

Paste the files there. 将文件粘贴到那里。

Now go back to android studio and you should see the files there. 现在回到android studio,你应该看到那里的文件。

You can also use the "Project" or "Project Files" view in Android Studio to see and copy to the "app/src/main/assets" (or whatever) directory itself. 您还可以使用Android Studio中的“项目”或“项目文件”视图查看并复制到“app / src / main / assets”(或其他)目录本身。

"app/assets" is an alias in "Android" view of project and I'm thinking that is the problem for paste. “app / assets”是项目“Android”视图中的别名,我认为这是粘贴的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM