我对资产文件夹感到困惑。它不是在AndroidStudio中自动创建的,几乎所有讨论它的论坛都讨论Eclipse。

如何在Android Studio中配置资产目录?


当前回答

似乎没有人提到这一点:您可以在“项目结构”>“项目设置”中定义它:

其他回答

在AndroidStudio中,右键单击app->src->main中的文件夹,然后创建该资产的新DIRECTORY名称。

如果你在这个线程中尝试了所有的子弹都没有用,那就尝试清理你的项目。在我的情况下,它只在Projet->清洁后起作用

follow these steps 

1)file->New->Folder
 there are multiple options like
      aidl folder
      assets folder
      jni folder
2) choose options assets folder
3) then there is option to change path of assets folder if you 
    want to change then check otherwise left that checkbox of cahnge folder location
4) click on finish 

两种方式:

选择app/main文件夹,右键单击并选择新建=>文件夹=>资产文件夹。它将在main中创建“assets”目录。选择主文件夹,右键单击并选择新建=>目录输入名称为“assets”=>确定。

似乎没有人提到这一点:您可以在“项目结构”>“项目设置”中定义它: