Android Studio red display…?

Hiii,

I recently downloaded Android Studio and am currently following a few YouTube tutorials. This project is from the video https://youtu.be/atw2uYyX1ps?si=w2RXykDO1-j1njTa starting at minute 9:30.

Unfortunately, I'm having the problem that, due to the newer version of the program, some functions are probably different… for example, the two terms "layout" and "amount" are displayed in red, even though I did everything exactly as shown in the video…

It's a bit frustrating when you've followed the whole thing for so long and in the end it doesn't work out because of such a small thing…

Does anyone know anything about this and can help? Thanks in advance!

(2 votes)
Loading...

Similar Posts

Subscribe
Notify of
2 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
tide1109
1 year ago

The fields under R.id are generated automatically. The basis for this is the elements in the XML file that represents your layout.

Do you have an element with the ID label or amount in your layout?

The Transaction class has nothing to do with the mistake.