Here is the error,
[capacitor] ✖️ Running Gradle build - failed!
[capacitor] [error]
[capacitor] FAILURE: Build failed with an exception.
[capacitor]
[capacitor] * What went wrong:
[capacitor] A problem occurred configuring root project 'android'.
[capacitor] > Could not resolve all files for configuration ':classpath'.
[capacitor] > Could not find com.android.tools.buildG8.8.
[capacitor] Searched in the following locations:
[capacitor] -
https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/8.8/gradle-8.8.pom
[capacitor] -
https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/8.8/gradle-8.8.pom
[capacitor] Required by:
[capacitor] project :
[capacitor]
[capacitor] * Try:
[capacitor] > Run with --stacktrace option to get the stack trace.
[capacitor] > Run with --info or --debug option to get more log output.
[capacitor] > Run with --scan to get full insights.
[capacitor] > Get more help at
https://help.gradle.org.
[capacitor]
[capacitor] BUILD FAILED in 798ms
[capacitor]
[ERROR] An error occurred while running subprocess capacitor.
capacitor run android --target Pixel_3a_API_34 exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.