Ionic android release build apk has below issue

56 views Asked by At

I have below issue

Type com.amc.patientapp.BuildConfig is defined multiple times

I have two build.gradle file in my ionic angular project when I open it in Android studio

  1. inside app folder - build.gradle

  2. inside capacitor-Cordova-android-plugins folder - build.gradle

both the build.gradle gradle file has same namespace com.amc.patientapp , it will create debug apk successfully but while creating release apk , I got this issue - Type com.amc.patientapp.BuildConfig is defined multiple times not sure what is going wrong here.

Please help me to resolved this issue . I am using ionic project with capacitor and android studio to create build apk . Normal build apk has no issue it has created successfully, but issue in release apk only . I am going to create release apk with new JSK information as old JKS has lost. I will ask play store team to update new JKS into same app id , so I can update the app.Your guidance are appreciated.

enter image description here

0

There are 0 answers