Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build android windows only #1670

Closed
1 task done
the-best-is-best opened this issue Jan 10, 2024 · 18 comments
Closed
1 task done

Can't build android windows only #1670

the-best-is-best opened this issue Jan 10, 2024 · 18 comments
Labels
bug Something isn't working

Comments

@the-best-is-best
Copy link

Is there an existing issue for this?

Flutter Quill version

9.2.2

Steps to reproduce

when run app build error in windows error but mac is working

Expected results

Compiling bin/build_tool_runner.dart to kernel file bin/build_tool_runner.dill.
Error: Couldn't resolve the package 'build_tool' in 'package:build_tool/build_tool.dart'.
bin/build_tool_runner.dart:1:8: Error: Not found: 'package:build_tool/build_tool.dart'
import 'package:build_tool/build_tool.dart' as build_tool;
^
bin/build_tool_runner.dart:3:15: Error: Method not found: 'runMain'.
build_tool.runMain(args);
^^^^^^^
Could not find a command named "bin\build_tool_runner.dill".

Actual results

info Show diagnostic information about the installed tooling.
pub Work with packages.
run Run a Dart program.
test Run tests for a project.

Run "dart help " for more information about a command.
See https://dart.dev/tools/dart-tool for detailed documentation.
2
The system cannot find the path specified.
The system cannot find the file specified.
The system cannot find the file specified.
Cannot operate on packages inside the cache.

Code sample

Not need when add package in new project and app not run correctly

Screenshots or Video

image

image

Logs

No response

@the-best-is-best the-best-is-best added the bug Something isn't working label Jan 10, 2024
@the-best-is-best the-best-is-best changed the title Can't build android Can't build android windows only Jan 10, 2024
@bkalidasan79
Copy link

i'm also face same issue ..

@EchoEllet
Copy link
Collaborator

Can you try 9.2.5? It doesn't contain any fix for the issue, but the new version of the super clipboard has more error messages and we neer it to debug the bug

@Til555
Copy link

Til555 commented Jan 16, 2024

...same here using super_clipboard: ^0.8.3 and flutter_quill: ^9.2.5 (windows 10, android studio 2023.1.1 Patch 1)
image

@EchoEllet
Copy link
Collaborator

...same here using super_clipboard: ^0.8.3 and flutter_quill: ^9.2.5 (windows 10, android studio 2023.1.1 Patch 1)
image

Thanks. Could you provide more info? flutter run -v

@Til555
Copy link

Til555 commented Jan 16, 2024

thanks a lot for your quick reply ellet0! ...run -v results in a huge list that's too long for the terminal window - so I can only copy and paste the last part (sorry for my ignorance - definitely let me know how to export a proper log if you like). See attached text file -hope this helps :)
flutterRunV_exported.txt

@EchoEllet
Copy link
Collaborator

thanks a lot for your quick reply ellet0! ...run -v results in a huge list that's too long for the terminal window - so I can only copy and paste the last part (sorry for my ignorance - definitely let me know how to export a proper log if you like). See attached text file -hope this helps :) flutterRunV_exported.txt

You are welcome, can you retry with the latest version? 9.2.6 and if the issue still remain please upload the logs once again using the previous step

@Til555
Copy link

Til555 commented Jan 16, 2024

No way - 9.2.6 solved it for me! (well, not all of my issues of course 🤪). But I think every error related to above issue is gone. I even have audio playing once again... Very big HUG ellet0! 🤗 Thank you!

@EchoEllet
Copy link
Collaborator

No way - 9.2.6 solved it for me! (well, not all of my issues of course 🤪). But I think every error related to above issue is gone. I even have audio playing once again... Very big HUG ellet0! 🤗 Thank you!

You are welcome, I'm not the one who fixed it

It all thanks to the owner of super clipboard plugin

@Til555
Copy link

Til555 commented Jan 16, 2024

Thank you anyways ellet0! :) ...and another hug to super clipboard plugin owner :D

@the-best-is-best
Copy link
Author

the-best-is-best commented Jan 17, 2024

SEVERE: ================================================================================
SEVERE: Cargokit BuildTool failed with error:
SEVERE: --------------------------------------------------------------------------------
SEVERE: External Command: rustup "run" "stable" "cargo" "build" "--manifest-path" "C:\Users\MichelleRaouf\AppData\Local\Pub\Cache\hosted\pub.dev\super_native_extensions-0.8.4\rust\Cargo.toml" "-p" "super_native_extensions" "--target" "x86_64-linux-android" "--target-dir" "D:\work\tallem\build\super_native_extensions/build"
SEVERE: Returned Exit Code: 101
SEVERE: --------------------------------------------------------------------------------
SEVERE: STDOUT:
SEVERE: --------------------------------------------------------------------------------
SEVERE: STDERR:
SEVERE: Compiling proc-macro2 v1.0.66
SEVERE: Compiling memchr v2.5.0
SEVERE: Compiling libc v0.2.147
SEVERE: Compiling futures-core v0.3.28
SEVERE: Compiling futures-channel v0.3.28
SEVERE: Compiling futures-task v0.3.28
SEVERE: Compiling thiserror v1.0.44
SEVERE: Compiling futures-util v0.3.28
SEVERE: Compiling slab v0.4.8
SEVERE: Compiling proc-macro-error-attr v1.0.4
SEVERE: Compiling rustix v0.38.7
SEVERE: Compiling serde v1.0.183
SEVERE: Compiling proc-macro-error v1.0.4
SEVERE: Compiling syn v1.0.109
SEVERE: Compiling futures-io v0.3.28
SEVERE: Compiling serde_json v1.0.104
SEVERE: error: linker link.exe not found
SEVERE: |
SEVERE: = note: program not found
SEVERE:
SEVERE: note: the msvc targets depend on the msvc linker but link.exe was not found
SEVERE:
SEVERE: note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.
SEVERE:
SEVERE: note: VS Code is a different product, and is not sufficient.
SEVERE:
SEVERE: error: could not compile futures-core (build script) due to previous error
SEVERE: warning: build failed, waiting for other jobs to finish...
SEVERE: error: could not compile slab (build script) due to previous error
SEVERE: error: could not compile futures-task (build script) due to previous error
SEVERE: error: could not compile proc-macro-error-attr (build script) due to previous error
SEVERE: error: could not compile futures-util (build script) due to previous error
SEVERE: error: could not compile proc-macro-error (build script) due to previous error
SEVERE: error: could not compile futures-channel (build script) due to previous error
SEVERE: error: could not compile memchr (build script) due to previous error
SEVERE: error: could not compile thiserror (build script) due to previous error
SEVERE: error: could not compile serde (build script) due to previous error
SEVERE: error: could not compile proc-macro2 (build script) due to previous error
SEVERE: error: could not compile serde_json (build script) due to previous error
SEVERE: error: could not compile libc (build script) due to previous error
SEVERE: error: could not compile syn (build script) due to previous error
SEVERE: error: could not compile rustix (build script) due to previous error
SEVERE: --------------------------------------------------------------------------------
SEVERE: #0 runCommand (package:build_tool/src/util.dart:118:5)
SEVERE: #1 RustBuilder.build (package:build_tool/src/builder.dart:139:5)
SEVERE:
SEVERE: #2 ArtifactProvider.getArtifacts (package:build_tool/src/artifacts_provider.dart:68:25)
SEVERE:
SEVERE: #3 BuildGradle.build (package:build_tool/src/build_gradle.dart:32:23)
SEVERE:
SEVERE: #4 BuildGradleCommand.runBuildCommand (package:build_tool/src/build_tool.dart:62:5)
SEVERE:
SEVERE: #5 BuildCommand.run (package:build_tool/src/build_tool.dart:34:5)
SEVERE:
SEVERE: #6 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
SEVERE:
SEVERE: #7 runMain (package:build_tool/src/build_tool.dart:248:5)
SEVERE:
SEVERE: --------------------------------------------------------------------------------
SEVERE: BuildTool arguments: [build-gradle]
SEVERE: ================================================================================

use flutter_quill: ^9.2.6 - super_clipboard: ^0.8.4

@EchoEllet
Copy link
Collaborator

The issue is now fixed, if you still facing it please let me know

@the-best-is-best
Copy link
Author

SEVERE: ================================================================================
SEVERE: Cargokit BuildTool failed with error:
SEVERE: --------------------------------------------------------------------------------
SEVERE: External Command: rustup "run" "stable" "cargo" "build" "--manifest-path" "C:\Users\MichelleRaouf\AppData\Local\Pub\Cache\hosted\pub.dev\super_native_extensions-0.8.4\rust\Cargo.toml" "-p" "super_native_extensions" "--target" "x86_64-linux-android" "--target-dir" "D:\work\tallem\build\super_native_extensions/build"
SEVERE: Returned Exit Code: 101
SEVERE: --------------------------------------------------------------------------------
SEVERE: STDOUT:
SEVERE: --------------------------------------------------------------------------------
SEVERE: STDERR:
SEVERE: Compiling proc-macro2 v1.0.66
SEVERE: Compiling unicode-ident v1.0.11
SEVERE: Compiling memchr v2.5.0
SEVERE: Compiling libc v0.2.147
SEVERE: Compiling version_check v0.9.4
SEVERE: Compiling cfg-if v1.0.0
SEVERE: Compiling futures-core v0.3.28
SEVERE: Compiling autocfg v1.1.0
SEVERE: Compiling regex-syntax v0.7.4
SEVERE: Compiling log v0.4.19
SEVERE: Compiling thiserror v1.0.44
SEVERE: Compiling futures-channel v0.3.28
SEVERE: Compiling futures-task v0.3.28
SEVERE: Compiling serde v1.0.183
SEVERE: Compiling once_cell v1.18.0
SEVERE: Compiling bytes v1.4.0
SEVERE: Compiling rustix v0.38.7
SEVERE: Compiling futures-sink v0.3.28
SEVERE: error: linker link.exe not found
SEVERE: |
SEVERE: = note: program not found
SEVERE:
SEVERE: note: the msvc targets depend on the msvc linker but link.exe was not found
SEVERE:
SEVERE: note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.
SEVERE:
SEVERE: note: VS Code is a different product, and is not sufficient.
SEVERE:
SEVERE: error: could not compile futures-task (build script) due to previous error
SEVERE: warning: build failed, waiting for other jobs to finish...
SEVERE: error: could not compile futures-channel (build script) due to previous error
SEVERE: error: could not compile futures-core (build script) due to previous error
SEVERE: error: could not compile thiserror (build script) due to previous error
SEVERE: error: could not compile serde (build script) due to previous error
SEVERE: error: could not compile memchr (build script) due to previous error
SEVERE: error: could not compile proc-macro2 (build script) due to previous error
SEVERE: error: could not compile libc (build script) due to previous error
SEVERE: error: could not compile rustix (build script) due to previous error
SEVERE: --------------------------------------------------------------------------------
SEVERE: #0 runCommand (package:build_tool/src/util.dart:118:5)
SEVERE: #1 RustBuilder.build (package:build_tool/src/builder.dart:139:5)
SEVERE:
SEVERE: #2 ArtifactProvider.getArtifacts (package:build_tool/src/artifacts_provider.dart:68:25)
SEVERE:
SEVERE: #3 BuildGradle.build (package:build_tool/src/build_gradle.dart:32:23)
SEVERE:
SEVERE: #4 BuildGradleCommand.runBuildCommand (package:build_tool/src/build_tool.dart:62:5)
SEVERE:
SEVERE: #5 BuildCommand.run (package:build_tool/src/build_tool.dart:34:5)
SEVERE:
SEVERE: #6 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
SEVERE:
SEVERE: #7 runMain (package:build_tool/src/build_tool.dart:248:5)
SEVERE:
SEVERE: --------------------------------------------------------------------------------
SEVERE: BuildTool arguments: [build-gradle]
SEVERE: ================================================================================

@EchoEllet
Copy link
Collaborator

Did you tried to uninstall rust? the plugin will install pre compiled one with required tools, otherwise you have to install them manually in vs studio

@the-best-is-best
Copy link
Author

Thanks @ellet0
build success
thank all for help

@EchoEllet
Copy link
Collaborator

Thanks @ellet0
build success
thank all for help

You are welcome, I'm glad it fixed

@the-best-is-best
Copy link
Author

@ellet0 how use FlutterQuillEmbeds.defaultEditorBuilders(), and active buttons toolbar in last version

@EchoEllet
Copy link
Collaborator

@ellet0 how use FlutterQuillEmbeds.defaultEditorBuilders(), and active buttons toolbar in last version

There are two builders, one for the web and another for other platforms. The default has some logic that runs depending on the platform. It's more limited and less used

Please take a look at the README of flutter quill extensions instead

If you have more questions, please ask them in the discussions so we can focus better at the subject

@milesegan
Copy link

I had the same issue. In my case running flutter clean seems to have fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants