If you were compiling with the API 28 compiler, then you are victim of the current bug which we are waiting for to see cleared (the API 28 compiler presently cannot handle apps half the size of what the API 26 could accept, and perhaps even smaller still). For more info on that, read the postings on the topic from the last 3 weeks.
If you were compiling with API 26 and saw this, then you app is massively too large for the system, and you need to look into optimization techniques to reduce the number of components and logical blocks.
For the record, the compiler limit applies only to individual screens, that is if you can divide your app into two screens of the same size, it is as if the app is half as large from the compiler’s point of view.
Thank you so much sir, it is compiling with the API 26. But not compiling with API 28