+ 1

How to solve these errors in my speech-recognition functions?

Hello guys, I saw a video on YouTube and here a Code, there a Code. Now I have the following Code in my fragment_home.kt file and some errors. Can anyone hekp me and tell, how to solve them? Following the Code link and a few screenshots Thank you for your help. Kind regards Errorguy https://code.sololearn.com/ca21A152a16A/?ref=app https://www.sololearn.com/post/1037203/?ref=app https://www.sololearn.com/post/1037202/?ref=app

14th Apr 2021, 6:28 PM
Errorguy
7 ответов
0
Errorguy hello, Your error comes while you are trying to override a function in the top level which means with out parent class that extends super class so All you need to do is put that override in proper activity ```kt class ActivityName : AppCompatActivity(){ override fun ... } ```
15th Apr 2021, 5:29 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
15th Apr 2021, 6:32 PM
Gabriele Giambrone
Gabriele Giambrone - avatar
+ 1
Thank you very much, Ananiya Jemberu
15th Apr 2021, 7:04 PM
Errorguy
0
genius, android on sololearn doesn' t work
14th Apr 2021, 9:52 PM
Gabriele Giambrone
Gabriele Giambrone - avatar
0
you can' t create an operative system on sololearn nor try to use it to elaborate anything for that you need to use a right java code editor like eclipse and create what you want
14th Apr 2021, 9:54 PM
Gabriele Giambrone
Gabriele Giambrone - avatar
0
Gabriele Giambrone I am programming this app in Android Studio.
15th Apr 2021, 10:36 AM
Errorguy
0
Gabriele Giambrone please be nice to the community! and he is not asking why it is not working there instead he is asking why the error show up on android studio.
15th Apr 2021, 5:32 PM
Ananiya Jemberu
Ananiya Jemberu - avatar