Eclipse “invalid resource directory name”

后端 未结 5 2048
闹比i
闹比i 2020-12-29 02:03

Whenever I try to add a resource folder to my Android project in Eclipse (3.7.0), I always get the following error:

invalid resource directory name: C:\\path         


        
相关标签:
5条回答
  • 2020-12-29 02:36

    Folders in the res-Folder are only allowed to be those defined by Android, for example "drawable". See http://developer.android.com/guide/topics/resources/available-resources.html for more information. If you choose anything else you get the error "invalid resource directory name" when building your project.

    0 讨论(0)
  • 2020-12-29 02:36

    In my actionbarsherlock folder. bin/res there was crunch folder. When I deleted it. It work fine. Don't know from where this come from ?

    0 讨论(0)
  • 2020-12-29 02:38

    Just learned something!

    FYI I 'm trying to store some audio files, created the folder audio under \res and got the same error. Then after some reading somebody wrote somewhere that \assets folder is a good folder for data files that don't change. So I placed my audio under \assets.

    0 讨论(0)
  • 2020-12-29 02:41

    in bin/res/ you have a folder with the name of crunch delete that folder and the problem will be fixed I don't have idea why, but when you create a project in aide the aide dont create the crunch folder

    0 讨论(0)
  • 2020-12-29 02:51

    For putting your resources like .mp3 files, create a folder named /raw under /res folder and store your files in it.And of course clean your project after this.

    This will definitely solve your problem.

    0 讨论(0)
提交回复
热议问题