I can't export apk file showing Your apk couldn't be compiled

Kodular is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating fragment xml
________Creating listview xml in res/layout/…
________Creating listview xml in res/layout-v21/…
________Creating xml in res/drawable/…
________Creating splash png in res/drawable/…
________Creating colors xml
________Creating strings xml
________Creating styles xml
________Creating drawables xml v21
________Checking for firebase
________Creating provider_path xml
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
AAPT time: 0.593 seconds
________Compiling source files
(compiling io/kodular/rajibaop032/News_App/Screen1.yail to io.kodular.rajibaop032.News_App.Screen1)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 478: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 478: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 480: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 480: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 482: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 482: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 484: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 484: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 486: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 486: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 488: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 488: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 490: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 490: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 492: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 492: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 494: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 494: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 496: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 496: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 498: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 498: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 500: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 500: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 502: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 502: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 504: duplicate declaration of ‘AdMob_Interstitial1$AdClosed’

ERROR: io/kodular/rajibaop032/News_App/Screen1.yail line 504: (this is the previous declaration of ‘AdMob_Interstitial1$AdClosed’)

Kawa compile time: 1.504 seconds
.

Show your blocks. I guess you searched the forum before asking?

Pro Tip 1: When coding, the error messages are usually your best guide. Instead of dumping a huge wall of text on the forum, read the error.

Pro Tip 2: If you have errors in your blocks, bad things happen. And unlike other IDEs, here the warnings too are pretty bad, so strive to have zero of both.

Synopsis of your problem: You tried to compile a project with errors in the blocks. This caused the compiler to have a stroke.

Solution to your problem: Delete the duplicate “AdMob_Interstitial1.AdClosed” event handler, as described by:

5 Likes