Why do my builds fail and how to fix that?

I’m making a project in Android Studio that includes a client app and a server modules. Whenever I try to run the server I get a “Dependent features configured but no package ID was set.” error (even though I do an the applicationID set in the module’s build.gradle file).
And whenever I try to run the app I get a
"FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:client:compileDebugKotlin’."

What is the problem and how do I fix them?

Edit: Accidently wrote Visual Studio instead of Android Studio -_-