I wish this helpful for you Use ant clean install instead of just ant install. Java inlines constants like the R.id values into generated bytecode, and sometimes your classes are not being recompiled, even though they need to be. Ideally, ant install would handle this properly; until it does, ant clean install is your friend.
To fix the issue you can do I don't see any code related to your error. Did you share the code where the issue happens? Are you testing on a KitKat or previous device? KitKat and older have issues with Vector Graphics and you have to enable Vector Support as well as handle the vectorSupport tag on src on all images. So I have to assume you have drawable vectors in your project and have put these in the wrong folder or have not properly handled them based on that error, but without more details, that is only a speculation. Keep in mind folders like no-dpi didn't exist in KitKat days as well as memory issues happen like crazy if not managed very meticulously.