Capacitor run android error on gradle build

Get the following error trying to run capacitor, however when I goto chrome I can manually download the the pom’s. Thanks

npx cap run android -l --external --target=Pixel_3a_API_33

√ Copying web assets from build to android\app\src\main\assets\public in 123.80ms
√ Creating capacitor.config.json in android\app\src\main\assets in 1.54ms
√ copy android in 174.30ms
√ Updating Android plugins in 4.79ms
[info] Found 4 Capacitor plugins for android:
@capacitor/app@1.1.1
@capacitor/haptics@1.1.4
@capacitor/keyboard@1.2.2
@capacitor/status-bar@1.0.8
√ update android in 94.75ms
× Running Gradle build - failed!
[error]
FAILURE: Build failed with an exception.

    * What went wrong:
    A problem occurred configuring root project 'android'.
    > Could not resolve all artifacts for configuration ':classpath'.
    > Could not resolve com.android.tools.build:gradle:4.2.1.
    Required by:
    project :
    > Could not resolve com.android.tools.build:gradle:4.2.1.
    > Could not get resource
    'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.2.1/gradle-4.2.1.pom'.
    > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.2.1/gradle-4.2.1.pom'.    
    > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to      
    configure the client to allow other protocols to be used. See:
    https://docs.gradle.org/7.0/userguide/build_environment.html#gradle_system_properties
    > sun.security.validator.ValidatorException: PKIX path building failed: