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
720 views
in Technique[技术] by (71.8m points)

flutter: can not build android apk

FAILURE: Build failed with an exception.
  • What went wrong: Execution failed for task ':app:lintVitalRelease'.

    Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'. Failed to transform libs.jar to match attributes {artifactType=processed-jar, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. Execution failed for JetifyTransform: E:AndroidStudioProjectsFlutterProjectEduyaariGuruFluttereduyaari_guru_flutteruildappintermediatesflutterdebuglibs.jar. Failed to transform 'E:AndroidStudioProjectsFlutterProjectEduyaariGuruFluttereduyaari_guru_flutteruildappintermediatesflutterdebuglibs.jar' using Jetifier. Reason: FileNotFoundException, message: E:AndroidStudioProjectsFlutterProjectEduyaariGuruFluttereduyaari_guru_flutteruildappintermediatesflutterdebuglibs.jar (The system cannot find the path specified). (Run with --stacktrace for more details.) Please file a bug at http://issuetracker.google.com/issues/new?component=460323.

  • 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 8s

See Question&Answers more detail:os

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

1 Answer

0 votes
by (71.8m points)

Step 1. flutter build apk --debug

Step 2. flutter build apk --profile

Step 3. flutter build apk --release


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

...