Failed to communication with Server

  1. Update Android Studio: Please use the updated version of Android Studio. It's recommended to clean the old project files in the old Android Studio folder. You may consider completely uninstalling Android Studio. For guidance, follow some tutorial videos on how to uninstall Android Studio properly.
  2. SDK Manager: Go to the SDK Manager and install CMAK. Additionally, install NDK version 21.3.6528147.

  3. Android Studio Version: Use Android Studio Arctic Fox (2020.3.1) or a newer version. Ensure that the Gradle version is set to 7.0.2.

  4. Build in the right way.

    You may follow these screenshots: Screenshot 1 — you need to replace data from Config.java, not API CONFIG.CPP.

    Also, check this: Screenshot 2.

  5. Don't forget to follow this in the build: Gradle Guidelines.

Did you find this article useful?