ionic cordova build android failed due to AOT

First I gonna past here the missing screenshot you linked:

enter image description here

Then, about the solution, the error msg tells you what's the problem respectively your AudioCategoryPage is contained in two modules, therefore:

  • Are you using lazy loading? Remove AudioCategoryPage from app.module.ts


  • Are you not using lazy loading? Remove (delete) audio-category.module.ts

I recently had this issue, I will post my solution in case someone else needs it.

1 - Remove @IonicPage() from .ts files

2 - Delete .module.ts