singerdmx / flutter-quill

Rich text editor for Flutter
https://pub.dev/packages/flutter_quill
MIT License
2.6k stars 840 forks source link

Android Gradle build failure related to Cargokit on Linux when using flutter_quill_extensions #2224

Closed zhangwenxia closed 2 months ago

zhangwenxia commented 2 months ago

Is there an existing issue for this?

Flutter Quill version

flutter_quill: ^10.5.18 、flutter_quill_extensions: ^10.5.18

Steps to reproduce

flutter build apk

Expected results

Run successfully

Actual results

1、flutter build apk

Error reported as follows: SEVERE: ================================================================================ SEVERE: Cargokit BuildTool failed with error: SEVERE: -------------------------------------------------------------------------------- SEVERE: ClientException with SocketException: Operation timed out (OS Error: Operation timed out, errno = 60), address = objects.githubusercontent.com, port = 61413, uri=https://github.com/irondash/irondash/releases/download/precompiled_c8cbb92de1e8b3dc787cdf8cb122c753/i686-linux-android_libirondash_engine_context_native.so.sig SEVERE: -------------------------------------------------------------------------------- SEVERE: #0 IOClient.send (package:http/src/io_client.dart:119:7) SEVERE: SEVERE: #1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93:32) SEVERE: SEVERE: #2 _withClient (package:http/http.dart:166:12) SEVERE: SEVERE: #3 ArtifactProvider._get (package:build_tool/src/artifacts_provider.dart:165:16) SEVERE: SEVERE: #4 ArtifactProvider._tryDownloadArtifacts (package:build_tool/src/artifacts_provider.dart:192:23) SEVERE: SEVERE: #5 ArtifactProvider._getPrecompiledArtifacts (package:build_tool/src/artifacts_provider.dart:133:11) SEVERE: SEVERE: #6 ArtifactProvider.getArtifacts (package:build_tool/src/artifacts_provider.dart:54:20) SEVERE: SEVERE: #7 BuildGradle.build (package:build_tool/src/build_gradle.dart:32:23) SEVERE: SEVERE: #8 BuildGradleCommand.runBuildCommand (package:build_tool/src/build_tool.dart:62:5) SEVERE: SEVERE: #9 BuildCommand.run (package:build_tool/src/build_tool.dart:34:5) SEVERE: SEVERE: #10 CommandRunner.runCommand (package:args/command_runner.dart:212:13) SEVERE: SEVERE: #11 runMain (package:build_tool/src/build_tool.dart:248:5) SEVERE: SEVERE: -------------------------------------------------------------------------------- SEVERE: BuildTool arguments: [build-gradle] SEVERE: ================================================================================

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

Code sample

No response

Additional Context

No response

EchoEllet commented 2 months ago

It seems like a connection issue

A workaround for now is to exclude the flutter_quill_extensions or super_clipboard plugin from the extensions package.

I might move super_clipboard to a new package quill_super_clipboard (to make it optional) and provide some default implementation in quill_native_bridge for Android and iOS.

Once #2230 is done, we will be ready to introduce a breaking change that move super_clipboard outside of flutter_quill_extensions.

zhangwenxia commented 2 months ago

It seems like a connection issue

A workaround for now is to exclude the flutter_quill_extensions or super_clipboard plugin from the extensions package.

I might move super_clipboard to a new package quill_super_clipboard (to make it optional) and provide some default implementation in quill_native_bridge for Android and iOS.

EchoEllet commented 2 months ago

To confirm, does excluding flutter_quill_extensions fixes the issue?

zhangwenxia commented 2 months ago

To confirm, does excluding flutter_quill_extensions fixes the issue?

excluding flutter_quill_extensions running successfully The project encountered an error after upgrading from version 3.7.12 to 3.24.2 Thank you very much for your answer. Thank you

EchoEllet commented 2 months ago

You're welcome.