Delete the BuildConfig.java file (you might need to confirm twice) and click “Build” -> “Clean Project”. Go to the Build drop-down menu in the menu bar. You can see the Rebuild Project under the Clean Project. If you can’t find Rebuild Project, you can use Clean Project instead. Try to build the app again afterward.
- Knowledge Base
- WebViewGold for Android
- Android Studio throws error: error: duplicate class: com.webviewgold.myappname public final class BuildConfig {
Article sections
Related Articles
- How to Fix the Android Studio Error: “The project is using an incompatible version (AGP X.X.X) of the Android Gradle plugin”?
- Key Metrics to Track in Your iOS & Android Apps and What They Reveal
- Monetizing Your App: Strategies for Generating Revenue
- Security and Privacy: Protecting Your Users' Data in Mobile Apps
- Solving the “Writable dex file is not allowed” Crash in Android Apps
- Google Play Target API Level 34 Requirement: What Developers Need to Know