Unable to apply changes on device: emulator-5554. Error is: Command gradlew.bat failed with exit code 1.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:runSbg’.

Process ‘command ‘C:\Program Files\Java\jdk1.8.0_221\bin\java.exe’’ finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 16s
Unable to apply changes on device: emulator-5554. Error is: Command gradlew.bat failed with exit code 1.