Launching lib/main.dart on Redmi Note 8 in debug mode...
Running Gradle task 'assembleDebug'...
I/flutter ( 5876): The user wants to login with mi and 123
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.google.android.gms:strict-version-matcher-plugin:1.1.0.
Required by:
project : > com.google.gms:google-services:4.2.0
> Could not resolve com.google.android.gms:strict-version-matcher-plugin:1.1.0.
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.pom'.
> Could not HEAD 'https://dl.google.com/dl/android/maven2/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.pom'.
> Connect to dl.google.com:443 [dl.google.com/216.58.208.142, dl.google.com/2a00:1450:4002:805:0:0:0:200e] failed: Network is unreachable (connect failed)
* 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 4m 34s
Finished with error: Gradle task assembleDebug failed with exit code 1
Related
I created new flutter app project.
And I start flutter run with android emulator.
But it shows below error message.
Why does it happen and How can I resolve this issue?
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> java.io.IOException: Failed to generate v1 signature
* 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 27s
Running Gradle task 'assembleDebug'... 28.3s
Exception: Gradle task assembleDebug failed with exit code 1
Below error occurred while running command ionic cordova build android. But when I check the location mentioned in the error, the file exists still getting this error.
Task :app:checkDebugAarMetadata FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find :tbxml-android:.
Searched in the following locations:
- file:/S:/Developer/Projects/driver-app/platforms/android/app/src/main/libs/tbxml-android.aar
- file:/S:/Developer/Projects/driver-app/platforms/android/app/libs/tbxml-android.aar
- file:/S:/Developer/Projects/driver-app/platforms/android/libs/tbxml-android.aar
Required by:
project :app
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.
Hello trying debuging app in my real device when i try run code i am getting this error in fluter
Launching lib/main.dart on RMX2020 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':app:androidJdkImage'.
> Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JdkImageTransform: /Users/apple/Library/Android/sdk/platforms/android-31/core-for-system-modules.jar.
> jlink executable /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/jlink does not exist.
* 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 15s
Exception: Gradle task assembleDebug failed with exit code 1
I'm new in android apps development. I created a new ionic project. When I try in the console cordova emualte android it fails with this errors:
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:2.3.0.
Required by:
project :
> Could not resolve com.android.tools.build:gradle:2.3.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/2.3.0/gradle-2.3.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/2.3.0/gradle-2.3.0.pom'.
> Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.4.215] failed: Connection timed out: connect
* 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 1m 7s
I try curl https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/2.3.0/gradle-2.3.0.pom in the console and worked.
Thanks for any help!!
When I click 'run' on Android Studio, I got a wrong message.
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
> Could not download x86_debug.jar (io.flutter:x86_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408)
> Could not get resource 'http://download.flutter.io/io/flutter/x86_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/x86_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.jar'.
> Could not GET 'http://117.128.6.36/cache/download.flutter.io/io/flutter/x86_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/x86_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.jar?ich_args2=469-15172408060292_4a4fd95214f9e92d2a125477ffc75a18_10001002_9c896c2adec7f3d7913f518939a83798_8d1af01e118d680a7de369bbc67b99cf'.
> Connect to 117.128.6.36:80 [/117.128.6.36] failed: Connection timed out: connect
> Could not download x86_64_debug.jar (io.flutter:x86_64_debug:1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408)
> Could not get resource 'http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/x86_64_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.jar'.
> Could not GET 'http://117.128.6.32/cache/download.flutter.io/io/flutter/x86_64_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/x86_64_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.jar?ich_args2=469-15172417060282_c6379c3b74cbe5c6510bd1dd15ff7877_10001002_9c896c2adec7f3d7913f518939a83798_1648250909497af7556e0012823cd639'.
> Connect to 117.128.6.32:80 [/117.128.6.32] failed: Connection timed out: connect
* 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 1m 9s
Finished with error: Gradle task assembleDebug failed with exit code 1
The Android project build normally but Flutter got this messgae. Switch my network to mobile hotspot can't solve either. The url http://117.128.6.36/cache/download.flutter.io/io/flutter/x86_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/x86_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.jar?ich_args2=469-15172408060292_4a4fd95214f9e92d2a125477ffc75a18_10001002_9c896c2adec7f3d7913f518939a83798_8d1af01e118d680a7de369bbc67b99cf can't be accessed but http://download.flutter.io/io/flutter/x86_64_debug/1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408/x86_64_debug-1.0.0-af51afceb8886cc11e25047523c4e0c7e1f5d408.jar can and download.