saving . . . saved Why the following error occured has been deleted. Why the following error occured has been hidden .
Why the following error occured
Title
Question
Madam/Sir,
Why the following error occurred in my Kotlin program whereas I did the same as you did in the tutorial.

https://drive.google.com/file/d/148RNCJ0KZ-I12gJ4McO8zHeDsASPsKfK/view?usp=sharing

https://drive.google.com/file/d/1QfgviPy2HsbRGSrt1g4-Ruh0J-lpUa_O/view?usp=sharing

Android-app-using-Kotlin Getting-started-with-Hello-World-app 10-11 min 20-30 sec 07-07-22, 12:26 p.m. sc256356

Answers:

Go through this link for more information:

https://code2care.org/pages/duplicate-id-already-defined-earlier-in-this-layout-android-error
https://stackoverflow.com/questions/41274286/how-do-i-fix-error-duplicate-id-in-android-studio

Follow exactly each and every step as specified in the tutorial. Otherwise create a new project and repeat the steps.
07-07-22, 1:08 p.m. NirmalaVenkat
I tried the steps there on the websites there which you have provided but not getting anything. Please solve this thing out and now I change the id name then also I am getting the same error named as reference error. I want to learn from you please this time don't direct me to some reference solve this for me from your side once I get some experience while learning then you will not have take much effort. Sorry but this is the starting stage that's why I am asking more at this point.
https://drive.google.com/file/d/1crrAMuMEc5Jlinh-4KK7mtqx8RHSoW7F/view?usp=sharing

https://drive.google.com/file/d/1s7ktrzW1d3UcIWqNSnuvfLrGA6EhGrv6/view?usp=sharing

07-07-22, 3:13 p.m. sc256356

Login to add comment


If you click on the red bulb icon on the code line with the issue, Android Studio has several suggestions to resolve the error, one of them helps you to import the dependency automatically.

Refer https://metapx.org/unresolved-reference-kotlin/

Please make sure that you add the id 'kotlin-android-extensions' line on the build.gradle file that’s inside your app module.


07-07-22, 4:07 p.m. NirmalaVenkat
https://drive.google.com/file/d/1M2GRCPpaaY0KhtUYJM8wYVyj3VsQi5wv/view?usp=sharing

https://drive.google.com/file/d/1wg5GKZ0_2NU13c6osZpo_O6QT-5Zlysr/view?usp=sharing

Madam, for the above two links I did my my best to do the same thing you taught on the tutorial then also I couldn't do anything. Madam, please rectify this doubt of mine why this reference error is occurring there in the program. I am struck at the same point from last 5 days. Please help me out. It's wasting a huge time. I am not saying that I should not struggle to find the answers of my doubt but here I am not getting anything at all where the problem struck also standing at a point and kicking in blind folded eye will not give the way to the solution. 

You gave me the following link earlier but how to use it at this elementary level I don't know very well;-
 https://metapx.org/unresolved-reference-kotlin/
I request you to please do this program once on Android studio Chipmunk version (this may be the latest version, which I have downloaded and having in my Computer) that is available on the same website where you have directed in the tutorial. Then you may realise the problem where I have been struck, very well. You may add a short video link via Google Drive which shows the practical. This may even help other students as well in future and you will not have to answer them again and again in the future for this because they will also download the same version which will be readily available on the website directed by the tutorial, like the one downloaded by me. Sorry madam for asking you to the extent of downloading another version and asking you to put the video of the process but I have been struck on the same position on an elementary level problem since last 5 days and it would be better to ask the professor for a help than kicking here and there in a blind folded vision and wasting time. If it would have been a problem which I can try but somehow my  mind isn't working then I might have definitely tried atleast 10 times from my side before asking you but, if I don't know the elementary techniques then how could I move further?
Hope you will. Thank you madam. 

08-07-22, 10:27 p.m. sc256356

Login to add comment


Log-in to answer to this question.