flutter-quill icon indicating copy to clipboard operation
flutter-quill copied to clipboard

Cargokit BuildTool failed with error

Open herowws opened this issue 1 year ago • 3 comments

Is there an existing issue for this?

Flutter Quill version

No response

Steps to reproduce

flutter doctor

image

Expected results

image

Actual results

image

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

herowws avatar Jul 09 '24 02:07 herowws

flutter_quill: 9.4.0 flutter_quill_extensions: 9.4.0

herowws avatar Jul 09 '24 02:07 herowws

Can you update to the last version (9.5.12) and test if this issue persist?

CatHood0 avatar Jul 09 '24 03:07 CatHood0

I'm unfamiliar with Rust and only used it once, we could send detailed reports in super_native_extensions though we have sent quite a lot of reports recently that are not quite specific, I would suggest waiting to avoid making noise.

Or we could extract super_clipboard plugin from flutter_quill_extensions to flutter_quill_super_clipboard to make it optional when using flutter_quill_extensions, a workaround, for now, is to avoid using flutter_quill_extensions or manually exclude the dependency plugin super_clipboard when including flutter_quill_extensions.

EchoEllet avatar Jul 09 '24 10:07 EchoEllet

Android support

The NDK version used is specified in android/app/build.gradle of your Flutter project.

android {
    // by default the project uses NDK version from flutter plugin.
    ndkVersion flutter.ndkVersion

If you have older Flutter android project, you will need to specify a reasonably recent minimal SDK version in android/app/build.gradle:

android {
    defaultConfig {
        minSdkVersion 23

To be able to write images and other custom data to Android clipboard you need to declare a content provider in AndroidManifest.xml:

<manifest>
    <application>
        ...
        <provider
            android:name="com.superlist.super_native_extensions.DataProvider"
            android:authorities="<your-package-name>.SuperClipboardDataProvider"
            android:exported="true"
            android:grantUriPermissions="true" >
        </provider>
        ...
    </application>
</manifest>

Be sure to replace in the snippet with your actual package name.

Source.

hungryemon avatar Sep 04 '24 07:09 hungryemon

This should be no longer an issue when using flutter_quill without flutter_quill_extensions (See #1914).

New versions have been released, I will update flutter_quill_extensions to use the latest version of super_clipboard (0.8.20) as the new minimum version. Feel free to open a new issue if this issue persists.

EchoEllet avatar Sep 04 '24 08:09 EchoEllet

* Where:
Script '/Users/a/.pub-cache/hosted/pub.dev/super_native_extensions-0.8.20/cargokit/gradle/plugin.gradle' line: 65

* What went wrong:
Execution failed for task ':super_native_extensions:cargokitCargoBuildSuper_native_extensionsRelease'.
> Process 'command '/Users/a/.pub-cache/hosted/pub.dev/super_native_extensions-0.8.20/cargokit/gradle/../run_build_tool.sh'' finished with non-zero exit value 69

  flutter_quill: ^10.5.9
  flutter_quill_extensions: ^10.5.9

Seems still exist @EchoEllet

mny459 avatar Sep 08 '24 08:09 mny459

  • Can you share on which platform you're building the app?
  • Have you ran flutter clean and then flutter pub get --verbose and share the full output (on GitHub Gist or Hastebin)?
  • Can you run flutter doctor -v and share the output?
  • Can you confirm if you have updated Android SDK to the latest version (both SDK Platforms and SDK Tools)? By opening the SDK Manager and then confirming the SDK Components Setup once you click on Edit.
  • Do you have Rust installed? The supper_clipboard plugin will automatically download precompiled binaries for the target platform.

EchoEllet avatar Sep 08 '24 09:09 EchoEllet

  • Can you share on which platform you're building the app?
  • Have you ran flutter clean and then flutter pub get --verbose and share the full output (on GitHub Gist or Hastebin)?
  • Can you run flutter doctor -v and share the output?
  • Can you confirm if you have updated Android SDK to the latest version (both SDK Platforms and SDK Tools)? By opening the SDK Manager and then confirming the SDK Components Setup once you click on Edit.
  • Do you have Rust installed? The supper_clipboard plugin will automatically download precompiled binaries for the target platform.

Thank you for reply.

I find the wrong document, by install rust, everything works now. Thank you.

Have a good day.

mny459 avatar Sep 08 '24 10:09 mny459