Awais Ali
Awais Ali

Reputation: 11

Android Studio facing a issue to run a fresh new app

I just create a new flutter application I installed android studio as i am beginner but i get these issue. Launching lib\main.dart on TECNO KE5k in debug mode... Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

Could not resolve all artifacts for configuration ':classpath'. Could not resolve com.android.tools.build:gradle:4.1.0. Required by: project : > Could not resolve com.android.tools.build:gradle:4.1.0. > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'. > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'. > java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty > Could not resolve com.android.tools.build:gradle:4.1.0. > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'. > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'. > java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50. Required by: project : > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50. > Could not get resource 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.50/kotlin-gradle-plugin-1.3.50.pom'. > Could not GET 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.50/kotlin-gradle-plugin-1.3.50.pom'. > java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50. > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.50/kotlin-gradle-plugin-1.3.50.pom'. > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.50/kotlin-gradle-plugin-1.3.50.pom'. > java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

BUILD FAILED in 4s Exception: Gradle task assembleDebug failed with exit code 1

Upvotes: 1

Views: 187

Answers (1)

R3HP
R3HP

Reputation: 510

seems like it just needs to download stuff check your internet connection . if your country is banned by google be sure to use a good secure vpn

Upvotes: 0

Related Questions