Program type already present: com.unity3d.player.BuildConfig

Shesha Shankar picture Shesha Shankar · Apr 4, 2018 · Viewed 10.8k times · Source

I'm trying to integrate a Unity project into an already existing Android Studio project. I get this error when I try to run the application:

Program type already present: com.unity3d.player.BuildConfig

Answer

A. Adam picture A. Adam · Feb 13, 2019

I had this issue when I had Unity Monetization 3.0.1 (for ads) imported along with the "Build in extension enabled" please refer to the pic.

To resolve the issue -I disabled the "built-in Ads extension" - delete the android and ios folders in the plugin folder and - reimport the monetization package to make it work.

There is a conflict between the built in package and the one we download from the asset store. Hope this helps someone.

Disable the built-in extension if you are using Monetization package from asset store