I record this for people who might want to try this with kids around 10 years old:
I made a game with my daughter, according to the .apk date it was 5 years ago so she was 10.
I started by making a project in android studio. Then a gameloop, where you had one function for drawing and one function for handling clicks/screen presses. So when you pressed 'play' on studio, it opened an 'empty game' on her own phone. All you had to do to make a game, was to edit 2 different functions and to make variables to pass info.
After that we started coding together and I no longer touched the keyboard. I just asked what she would like to do next, and gave advice how it could be done. She had patience for about 15 minutes at a time, and after of total maybe 2 hours, calendar time 4 weeks, we finished a 'hit a mole' game. I was quite careful not to put any pressure like 'lets do a bit more'. And asked maybe twice a week, 'would you like to do some coding'.
After the project she said it was 'not her thing'. This summer she was coding web-UI with Java+IntelliJ in my work as a summer trainee, and now she said she enjoyed it.