I was following the 15th tutorial on Android App Development fro beginners. I typed the same code but my app is not building and I am getting an error

Variable "buttonDetails" is accessed from within inner class, needs to be declared final.
Can anyone please help me out ?