Flutter 应用程序在真实设备和模拟器上正常运行,但不';生成apk时不工作
当我在真实设备或模拟器上运行应用程序时,它正常工作,但当我执行此操作时,Flutter 应用程序在真实设备和模拟器上正常运行,但不';生成apk时不工作,flutter,Flutter,当我在真实设备或模拟器上运行应用程序时,它正常工作,但当我执行此操作时,flatter build apk我收到此错误,这是什么原因,以及如何解决此错误 [Fatal Error] armeabi_v7a_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.pom:2:10: Already seen doctype. [Fatal Error] armeabi_v7a_debug-1.0.0-b6b54fd60631a3828c2e2c9b
flatter build apk
我收到此错误,这是什么原因,以及如何解决此错误
[Fatal Error] armeabi_v7a_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.pom:2:10: Already seen doctype.
[Fatal Error] armeabi_v7a_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.pom:2:10: Already seen doctype.
[Fatal Error] armeabi_v7a_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.pom:2:10: Already seen doctype.
[Fatal Error] armeabi_v7a_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.pom:2:10: Already seen doctype.
[Fatal Error] armeabi_v7a_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.pom:2:10: Already seen doctype.
[Fatal Error] armeabi_v7a_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.pom:2:10: Already seen doctype.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
> Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.
Required by:
project :app
> Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.
> Could not parse POM http://download.flutter.io/io/flutter/armeabi_v7a_debug/1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37/armeabi_v7a_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b
5d1d2d8c8c37.pom
> Already seen doctype.
> Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.
> Could not parse POM http://download.flutter.io/io/flutter/armeabi_v7a_debug/1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37/armeabi_v7a_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b
5d1d2d8c8c37.pom
> Already seen doctype.
> Could not resolve io.flutter:armeabi_v7a_debug:1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.
> Could not parse POM http://download.flutter.io/io/flutter/armeabi_v7a_debug/1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37/armeabi_v7a_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b
5d1d2d8c8c37.pom
> Already seen doctype.
* 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 3s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done ٤٫٣s
Gradle task assembleRelease failed with exit code 1
对我来说,只有在尝试为x86构建时才会发生这种情况。我能在模拟器上构建和运行真是奇怪 我正在尝试这个:
flutter build apk --release --target-platform android-x86
对我来说,只有在尝试为x86构建时才会发生这种情况。我能在模拟器上构建和运行真是奇怪 我正在尝试这个:
flutter build apk --release --target-platform android-x86