Ever since I was in grade 7, I have been passionate about building games and apps. Although I learned some XML back then, I lost my ambition over the years due to life's distractions. However, two weeks ago, I decided to teach myself Java and created a simple app called "Spin the Bottle." I've managed to work out most of the kinks, but now I'm facing a challenge that has me stuck.
The app runs perfectly fine without the counter that triggers an interstitial ad to pop up. But as soon as I add the code from "Button spin =(Button)" to "counter = 1; }else {...", the animation of the spinning bottle stops abruptly. I've spent the last two days scouring the web and experimenting with various solutions, but I haven't found the right fix yet. It's becoming quite frustrating, and any assistance would be immensely appreciated. Thank you in advance!