Not able to setup the android project of RC

Firstly, I cloned both the Rocket.Chat.Android repo and Rocket.Chat.Kotlin.SDK repo in the same folder (I called mine RocketChat):

|-- Rocket.Chat.Android/
|-- Rocket.Chat.Kotlin.SDK/
Then used the terminal.

cd Rocket.Chat.Android/app
and run the build command

Then I tried to hit run. But it showed me edit configurations.
Then I tried syncing Gradle files. It showed me an error once but it also synced successfully.
But finally I connected my mobile phone and started USB debugging in it. Then also am not able to setup the project into my local machine.
I am tried it for 3 days and now I have no where to go. Kindly help me.
Some of the error SS are also attached.!