Hey guys, i just started using Startapp in some apps but i would like some help. Whenever I try adding the banner programmatically i get this error message saying “mainLayout cannot be resolved or is not a field”.
No matter what I do, I cant seem to solve it. Any help would be appreciated.
You should add your banner view to the main layout of your activity. It can’t be called ‘mainLayout.xml’ it’s more like ‘main_layout.xml’ (no capital chars allowed).
And it should be visible on ‘R.layout.main_layout’, not ‘R.id.main_layout’.