Type BuildConfig is defined multiple times
Most probably both shared AndroidManifest.xml and androidApp AndroidManifest.xml has the same packageId. They have to be different. For example, com.my.app.shared and com.my.app.android
My Android Manifest Had the same Package Name for two Diferent Modules.
check if both modules have a same package name