Generating apk with Capacitor

I am new to Ionic framework, trying to develop a mobile app, followed steps provided in Android App Development Guide: Build Ionic Apps in Android Studio ,
installed gradle manually (Gradle 7.3.3)
and ran the below command
ionic capacitor copy android; cd android; ./gradlew assembleDebug; cd … (powershell)
but getting error
A problem occurred configuring root project ‘android’.

Could not resolve all artifacts for configuration ‘:classpath’.
Could not resolve org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2.
Required by:
project : > com.android.tools.build:gradle:4.2.1
Could not resolve org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2.
Could not get resource ‘https://jcenter.bintray.com/org/tensorflow/tensorflow-lite-metadata/0.1.0-rc2/tensorflow-lite-metadata-0.1.0-rc2.pom’.
Could not HEAD ‘https://jcenter.bintray.com/org/tensorflow/tensorflow-lite-metadata/0.1.0-rc2/tensorflow-lite-metadata-0.1.0-rc2.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: Build Environment
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31.
Required by:
project : > com.android.tools.build:gradle:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:aaptcompiler:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.lint:lint-gradle-api:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:gradle-api:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > androidx.databinding:databinding-compiler-common:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.build:builder-model:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:common:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.build:manifest-merger:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.analytics-library:tracker:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.lint:lint-gradle-api:27.2.1 > com.android.tools.lint:lint-model:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdklib:27.2.1 > com.android.tools:repository:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1 > com.android.tools.analytics-library:shared:27.2.1
Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31.
Could not get resource ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.31/kotlin-stdlib-jdk8-1.4.31.pom’.
Could not HEAD ‘https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.31/kotlin-stdlib-jdk8-1.4.31.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: Build Environment
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not resolve org.ow2.asm:asm:7.0.
Required by:
project : > com.android.tools.build:gradle:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:gradle-api:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > org.ow2.asm:asm-util:7.0
Could not resolve org.ow2.asm:asm:7.0.
Could not get resource ‘https://jcenter.bintray.com/org/ow2/asm/asm/7.0/asm-7.0.pom’.
Could not HEAD ‘https://jcenter.bintray.com/org/ow2/asm/asm/7.0/asm-7.0.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: Build Environment
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not resolve org.ow2.asm:asm-analysis:7.0.
Required by:
project : > com.android.tools.build:gradle:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > org.ow2.asm:asm-util:7.0

BUILD FAILED in 9s

This is how you should do:

Create a new ionic project
Include capacitor

Run ionic build

Add your desidered platform with
Npx cap add android

Npx cap sync

Now you can run

Npx cap open android to open android studio

With android studio you can make the apl selecting generate build

Something appears amiss with your network configuration. Could be a bad proxy setting or Gradle setup.

No Use, I am having issues with gradle,

A problem occurred configuring root project ‘android’.

Could not resolve all artifacts for configuration ‘:classpath’.
Could not resolve org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2.
Required by:
project : > com.android.tools.build:gradle:4.2.1
Could not resolve org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2.
Could not get resource ‘https://jcenter.bintray.com/org/tensorflow/tensorflow-lite-metadata/0.1.0-rc2/tensorflow-lite-metadata-0.1.0-rc2.pom’.
Could not HEAD ‘https://jcenter.bintray.com/org/tensorflow/tensorflow-lite-metadata/0.1.0-rc2/tensorflow-lite-metadata-0.1.0-rc2.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: Build Environment
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31.
Required by:
project : > com.android.tools.build:gradle:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:aaptcompiler:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.lint:lint-gradle-api:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:gradle-api:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > androidx.databinding:databinding-compiler-common:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.build:builder-model:4.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:common:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.build:manifest-merger:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools.analytics-library:tracker:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.lint:lint-gradle-api:27.2.1 > com.android.tools.lint:lint-model:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdklib:27.2.1 > com.android.tools:repository:27.2.1
project : > com.android.tools.build:gradle:4.2.1 > com.android.tools.build:builder:4.2.1 > com.android.tools:sdk-common:27.2.1 > com.android.tools.analytics-library:shared:27.2.1
Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.31.

i haven’t configured proxy, am having issues with gradle,

I have installed gradle manually, do we get proper info related build.gradle, gradle-wrapper.properties

build.gradle file settings
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

repositories {

    google()

    jcenter()

}

dependencies {

    classpath 'com.android.tools.build:gradle:4.2.1'

    classpath 'com.google.gms:google-services:4.3.5'

    // NOTE: Do not place your application dependencies here; they belong

    // in the individual module build.gradle files

}

}

apply from: “variables.gradle”

allprojects {

repositories {

    google()

    jcenter()

}

}

task clean(type: Delete) {

delete rootProject.buildDir

}

gradle-wrapper.properties

distributionBase=GRADLE_USER_HOME

distributionPath=wrapper/dists

distributionUrl=https://services.gradle.org/distributions/gradle-7.0-all.zip

zipStoreBase=GRADLE_USER_HOME

zipStorePath=wrapper/dists