If you are facing this issue:
R.java : error APT2258: invalid symbol name 'com.companyname.appname:drawable/xxxx'.
You should check for your Resources folder, and look for files with name like a C# or Java keyword. For example: new, public, private, static, class, and so on.
If you rename the file, it will solve your problem.