My flutter project is not installing in real device kindly help me to resolve this error here is the error:
> Could not load module metadata from C:\Users\usama\.gradle\caches\modules-2\metadata-2.96\descriptors\org.jetbrains.kotlin\kotlin-stdlib-common\1.3.50\edb68b65d2dd9b547bbf59d703899938\descriptor.bin
* 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 7s
Exception: Gradle task assembleDebug failed with exit code 1
I have tried many codes but no any response.
CodePudding user response:
You need to clean your cache
folder.
Just follow this steps:
Step 1: Open the terminal
Step 2:
cd C:\Users\usama\.gradle
Step 3:
rm -r caches\
Step 4: Now clean or rebuild the project
CodePudding user response:
[Fatal Error] flutter_embedding_debug-1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce.pom:14:8: The content of elements must consist of well-formed character data or markup. [Fatal Error] x86_debug-1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce.pom:2:1: Content is not allowed in prolog.
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 resolve io.flutter:flutter_embedding_debug:1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce. Required by: project :app > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce. > Could not parse POM https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce/flutter_embedding_debug-1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce.pom > The content of elements must consist of well-formed character data or markup. > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce. > Could not get resource 'https://jcenter.bintray.com/io/flutter/flutter_embedding_debug/1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce/flutter_embedding_debug-1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce.pom'. > Could not HEAD 'https://jcenter.bintray.com/io/flutter/flutter_embedding_debug/1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce/flutter_embedding_debug-1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce.pom'. > Read timed out Could not resolve io.flutter:x86_debug:1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce. Required by: project :app > Could not resolve io.flutter:x86_debug:1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce. > Could not parse POM https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce/x86_debug-1.0.0-241c87ad800beeab545ab867354d4683d5bfb6ce.pom > Content is not allowed in prolog.
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 2m 4s Exception: Gradle task assembleDebug failed with exit code 1
what is this error