In a confirmation phase of your package name you have to write it completely , here you just typed com
instead of com.example.chatapp
. If you can't type it completely , open it in android studio and try with terminal of android studio. I already faces with this issue and fixed it like this solution.