Skip to content Skip to sidebar Skip to footer

Android Studio: Underscores In Literals Are Not Supported Error

I have a problem with the drawable class in R.java file. I had drawable hdpi, mdpi, xhdpi... folders in main/res, but drawable was missing so i created it by hand. Main.xml is abl

Solution 1:

removing the "10_" at the beginning of your files can fix the issue. For the reason why you can't have a resource with a numeric name, read this . If theses drawable ressources are icons, you can use the common naming conventions that you can read here, and begin your icons by "ic_" or "ic_menu" if this is Menu icons and Action Bar icons.


Post a Comment for "Android Studio: Underscores In Literals Are Not Supported Error"