2

I have some directories in assets folder that are not in English. When I compile, it gives me error

Invalid directory name, unable to add

My files are in such language folder names in assets dir

Can I even use folders in other languages in assets?

Michael
  • 41,989
  • 11
  • 82
  • 128
AB_498
  • 39
  • 9

2 Answers2

1

A directory name can't be on other languages. It has to be called by findViewById() which doesn't support other languages like Bangla. You could use other languages for localization in your resources. There are differences between resources and assets. Have a look at this SO article about res and asset directory. Difference between /res and /assets directories

Check out this android official docs for a better understanding of how and what could be localized. Support different languages and cultures

K M Rejowan Ahmmed
  • 1,034
  • 2
  • 12
  • 26
1

Select new Assests folder. Click On Change Folder Location. src/main/assets/हिन्दी,

enter image description here

There is same method and supported Bengali language. I can't write Bengali because i don't know i just copy Bengali language text and paste. I think you can't write Bengali text in this text box because it's not supported just copy and paste it will look like this image.

enter image description here

But you cannot create sub folder.. It will look like this

enter image description here

but sorry for this I cannot proper helped you. According to your requirement. I try my best.

Waseem Virk
  • 47
  • 1
  • 10