Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
619 views
in Technique[技术] by (71.8m points)

android studio - FAILURE: Build failed with an exception error when I run the app

I started working with a flutter project, and as a beginner, I tried to run the default code given by the flutter team. But I keep getting the error as given below.

FAILURE: Build failed with an exception.

  • What went wrong:

Execution failed for task ':app:mergeDebugResources'. Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Failed to transform artifact 'core.aar (androidx.core:core:1.1.0)' to match attributes {artifactType=android-res}. > Execution failed for AarTransform: C:Userskrish.gradlecachesransforms-2files-2.1a528b13ac93e64cafa3d0480e2c93207core-1.1.0. > Cannot parse result path string:
Failed to transform artifact 'core.aar (androidx.core:core:1.1.0)' to match attributes {artifactType=android-res}. > Execution failed for AarTransform: C:Userskrish.gradlecachesransforms-2files-2.1a528b13ac93e64cafa3d0480e2c93207core-1.1.0. > Cannot parse result path string:
Failed to transform artifact 'core.aar (androidx.core:core:1.1.0)' to match attributes {artifactType=android-res}. > Execution failed for AarTransform: C:Userskrish.gradlecachesransforms-2files-2.1a528b13ac93e64cafa3d0480e2c93207core-1.1.0. > Cannot parse result path string:
Failed to transform artifact 'core.aar (androidx.core:core:1.1.0)' to match attributes {artifactType=android-res}. > Execution failed for AarTransform: C:Userskrish.gradlecachesransforms-2files-2.1a528b13ac93e64cafa3d0480e2c93207core-1.1.0. > Cannot parse result path string:
Failed to transform artifact 'core.aar (androidx.core:core:1.1.0)' to match attributes {artifactType=android-res}. > Execution failed for AarTransform: C:Userskrish.gradlecachesransforms-2files-2.1a528b13ac93e64cafa3d0480e2c93207core-1.1.0. > Cannot parse result path string:

  • 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

It would be of great help if you could help me out. Thanks in advance.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...