Having duplicate R java's will cause Proguard to fail. You will get duplicate R java files when generate a test APK.