Open 520l opened 2 weeks ago
如果方便,我还想顺便想问一下,fultter和安卓sdk安装后的构建app命令以及如何运行到x11上。文档看得我有点蒙😩
日志log
Flutter crash report. Please report a bug at https://github.com/flutter/flutter/issues.
flutter build apk
ProcessException: ProcessException: strerror_r failed Command: /data/data/com.termux/files/home/api/android/gradlew -q -Ptarget-platform=android-arm,android-arm64,android-x64 -Ptarget=lib/main.dart -Pbase-application-name=android.app.Application -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=true assembleRelease
#0 _ProcessImpl._start (dart:io-patch/process_patch.dart:402:33)
#1 Process.start (dart:io-patch/process_patch.dart:38:20)
#2 LocalProcessManager.start (package:process/src/interface/local_process_manager.dart:42:22)
#3 ErrorHandlingProcessManager.start.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:686:24)
#4 _run (package:flutter_tools/src/base/error_handling_io.dart:556:20)
#5 ErrorHandlingProcessManager.start (package:flutter_tools/src/base/error_handling_io.dart:685:12)
#6 _DefaultProcessUtils.start (package:flutter_tools/src/base/process.dart:476:28)
#7 _DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart:496:35)
#8 AndroidGradleBuilder.buildGradleApp (package:flutter_tools/src/android/gradle.dart:475:38)
#9 AndroidGradleBuilder.buildApk (package:flutter_tools/src/android/gradle.dart:224:11)
#10 BuildApkCommand.runCommand (package:flutter_tools/src/commands/build_apk.dart:142:27)
<asynchronous suspension>
#11 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1389:27)
<asynchronous suspension>
#12 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#13 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#14 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:355:9)
<asynchronous suspension>
#15 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#16 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:295:5)
<asynchronous suspension>
#17 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:119:9)
<asynchronous suspension>
#18 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#19 main (package:flutter_tools/executable.dart:90:3)
<asynchronous suspension>
[33m[!][39m Flutter (Channel [user-branch], 3.19.0, on
Linux, locale en_US.UTF-8)
[33m![39m Flutter version 3.19.0 on channel
[user-branch] at
/data/data/com.termux/files/usr/opt/flutt
er
Currently on an unknown channel. Run
`flutter channel` to switch to an
official channel.
If that doesn't fix the issue, reinstall
Flutter by following instructions at
https://flutter.dev/docs/get-started/inst
all.
[33m![39m The dart binary is not on your path.
Consider adding
/data/data/com.termux/files/usr/opt/flutt
er/bin to your path.
[33m![39m Upstream repository unknown source is not
a standard remote.
Set environment variable
"FLUTTER_GIT_URL" to unknown source to
dismiss this error.
[32m•[39m Framework revision bae5e49bc2 (9 weeks
ago), 2024-02-13 17:46:18 -0800
[32m•[39m Engine revision 04817c99c9
[32m•[39m Dart version 3.3.0
[32m•[39m DevTools version 2.31.0
[32m•[39m If those were intentional, you can
disregard the above warnings; however it
is recommended to use "git" directly to
perform update checks and upgrades.
[33m[!][39m Android toolchain - develop for Android
devices (Android SDK version 30.0.3)
[32m•[39m Android SDK at
/data/data/com.termux/files/usr/opt/andro
id-sdk
[32m•[39m Platform android-33, build-tools 30.0.3
[32m•[39m Java binary at:
/data/data/com.termux/files/usr/lib/jvm/j
ava-17-openjdk/bin/java
[32m•[39m Java version OpenJDK Runtime Environment
(build 17-internal+0-adhoc..src)
[31m✗[39m Android license status unknown.
Run `flutter doctor --android-licenses`
to accept the SDK licenses.
See
https://flutter.dev/docs/get-started/inst
all/linux#android-setup for more details.
[31m[✗][39m Chrome - develop for the web (Cannot find
Chrome executable at google-chrome)
[33m![39m Cannot find Chrome. Try setting
CHROME_EXECUTABLE to a Chrome executable.
[32m[✓][39m Linux toolchain - develop for Linux desktop
[32m•[39m clang version 18.1.3
[32m•[39m cmake version 3.29.2
[32m•[39m ninja version 1.12.0
[32m•[39m pkg-config version 0.29.2
[33m[!][39m Android Studio (not installed)
[32m•[39m Android Studio not found; download from
https://developer.android.com/studio/inde
x.html
(or visit
https://flutter.dev/docs/get-started/inst
all/linux#android-setup for detailed
instructions).
[32m[✓][39m Connected device (1 available)
[32m•[39m Linux (desktop) • linux • linux-arm64 •
Linux
[32m[✓][39m Network resources
[32m•[39m All expected network resources are
available.
[33m![39m Doctor found issues in 4 categories.
dart在Android14上会有这个问题,不是android-sdk的问题,而且不知道问题是什么。
可以自己尝试在Android14上的termux中编译dart-sdk,大概需要20GB剩余空间。
dart在Android14上会有这个问题,不是android-sdk的问题,而且不知道问题是什么。
mumumusuc/termux-android-sdk#3
23
可以自己尝试在Android14上的termux中编译dart-sdk,大概需要20GB剩余空间。
报错,Package 'gtk3' has no installation candidate 找不到这个gtk3这个要咋解决,是要换源吗
dart在Android14上会有这个问题,不是android-sdk的问题,而且不知道问题是什么。
mumumusuc/termux-android-sdk#3
23
可以自己尝试在Android14上的termux中编译dart-sdk,大概需要20GB剩余空间。
报错,Package 'gtk3' has no installation candidate 找不到这个gtk3这个要咋解决,是要换源吗
apt install x11-repo
apt install gtk3
dart在Android14上会有这个问题,不是android-sdk的问题,而且不知道问题是什么。
mumumusuc/termux-android-sdk#3
23
可以自己尝试在Android14上的termux中编译dart-sdk,大概需要20GB剩余空间。
报错,Package 'gtk3' has no installation candidate 找不到这个gtk3这个要咋解决,是要换源吗
apt install x11-repo apt install gtk3
~/termux-flutter/engine $ make sync
/data/data/com.termux/files/usr/bin/python3 /data/data/com.termux/files/home/termux-flutter/engine/gclient.py sync -DR --with_branch_heads --with_tags --no-history
53>Syncing projects: 37% (47/124) Syncing projects: 100% (132/132), done.
Traceback (most recent call last):
File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 147, in init
super(Popen, self).init(args, **kwargs)
File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1951, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cipd'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/data/com.termux/files/home/termux-flutter/engine/metrics.py", line 297, in print_notice_and_exit
yield
File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4091, in
你好,我在编译方面出了一个问题,这是log,好像找不到cipd。那么我接下来该如何安装这个依赖呢?
~/termux-flutter/engine $ make sync
/data/data/com.termux/files/usr/bin/python3 /data/data/com.termux/files/home/termux-flutter/engine/gclient.py sync -DR --with_branch_heads --with_tags --no-history
53>Syncing projects: 37% (47/124) Syncing projects: 100% (132/132), done.
Traceback (most recent call last):
File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 147, in init
super(Popen, self).init(args, **kwargs)
File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1951, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cipd'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/data/com.termux/files/home/termux-flutter/engine/metrics.py", line 297, in print_notice_and_exit
yield
File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4091, in
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 13:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) |
dart在Android14上会有这个问题,不是android-sdk的问题,而且不知道问题是什么。
mumumusuc/termux-android-sdk#3
可以自己尝试在Android14上的termux中编译dart-sdk,大概需要20GB剩余空间。
报错,Package 'gtk3' has no installation candidate 找不到这个gtk3这个要咋解决,是要换源吗
apt install x11-repo apt install gtk3
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
你好,我在编译方面出了一个问题,这是log,好像找不到cipd。那么我接下来该如何安装这个依赖呢? ~/termux-flutter/engine $ make sync /data/data/com.termux/files/usr/bin/python3 /data/data/com.termux/files/home/termux-flutter/engine/gclient.py sync -DR --with_branch_heads --with_tags --no-history 53>Syncing projects: 37% (47/124) Syncing projects: 100% (132/132), done. Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 147, in init super(Popen, self).init(args, kwargs) File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1951, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'cipd' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/metrics.py", line 297, in print_notice_and_exit yield File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4091, in
sys.exit(main(sys.argv[1:])) ^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4077, in main return dispatcher.execute(OptionParser(), argv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subcommand.py", line 253, in execute return command(parser, args[1:]) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 3468, in CMDsync ret = client.RunOnDeps('update', args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 2294, in RunOnDeps self._cipd_root.run(command) File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1844, in run self.ensure() File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1792, in ensure gclient_utils.CheckCallAndFilter(cmd, File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_utils.py", line 638, in CheckCallAndFilter kid = subprocess2.Popen(args, ^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 158, in init raise OSError( OSError: Execution failed with error: [Errno 2] No such file or directory: 'cipd'. Check that None or cipd exist and have execution permission. make: ** [Makefile:80: sync] Error 1 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 13:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) | dart在Android14上会有这个问题,不是android-sdk的问题,而且不知道问题是什么。 mumumusuc/termux-android-sdk#3 #23 可以自己尝试在Android14上的termux中编译dart-sdk,大概需要20GB剩余空间。 报错,Package 'gtk3' has no installation candidate 找不到这个gtk3这个要咋解决,是要换源吗 apt install x11-repo apt install gtk3 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
确认engine目录下有cpid这个文件的话,应该是没设置执行路径,在engine目录下执行export PATH=$PATH:$(pwd)
你好,我在编译方面出了一个问题,这是log,好像找不到cipd。那么我接下来该如何安装这个依赖呢? ~/termux-flutter/engine $ make sync /data/data/com.termux/files/usr/bin/python3 /data/data/com.termux/files/home/termux-flutter/engine/gclient.py sync -DR --with_branch_heads --with_tags --no-history 53>Syncing projects: 37% (47/124) Syncing projects: 100% (132/132), done. Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 147, in init super(Popen, self).init(args, kwargs) File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1951, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'cipd' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/metrics.py", line 297, in print_notice_and_exit yield File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4091, in
sys.exit(main(sys.argv[1:])) ^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4077, in main return dispatcher.execute(OptionParser(), argv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subcommand.py", line 253, in execute return command(parser, args[1:]) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 3468, in CMDsync ret = client.RunOnDeps('update', args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 2294, in RunOnDeps self._cipd_root.run(command) File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1844, in run self.ensure() File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1792, in ensure gclient_utils.CheckCallAndFilter(cmd, File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_utils.py", line 638, in CheckCallAndFilter kid = subprocess2.Popen(args, ^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 158, in init raise OSError( OSError: Execution failed with error: [Errno 2] No such file or directory: 'cipd'. Check that None or cipd exist and have execution permission. make: ** [Makefile:80: sync] Error 1 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 13:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) | dart在Android14上会有这个问题,不是android-sdk的问题,而且不知道问题是什么。 mumumusuc/termux-android-sdk#3 #23 可以自己尝试在Android14上的termux中编译dart-sdk,大概需要20GB剩余空间。 报错,Package 'gtk3' has no installation candidate 找不到这个gtk3这个要咋解决,是要换源吗 apt install x11-repo apt install gtk3 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
确认engine目录下有cpid这个文件的话,应该是没设置执行路径,在engine目录下执行export PATH=$PATH:$(pwd)
还是找不到cipd文件,但是单独运行cipd可以( ˊ ᵕ ˋ 💦)。好奇怪👉👈
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 17:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) |
你好,我在编译方面出了一个问题,这是log,好像找不到cipd。那么我接下来该如何安装这个依赖呢? ~/termux-flutter/engine $ make sync /data/data/com.termux/files/usr/bin/python3 /data/data/com.termux/files/home/termux-flutter/engine/gclient.py sync -DR --with_branch_heads --with_tags --no-history 53>Syncing projects: 37% (47/124) Syncing projects: 100% (132/132), done. Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 147, in init super(Popen, self).init(args, kwargs) File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1951, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'cipd' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/metrics.py", line 297, in print_notice_and_exit yield File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4091, in sys.exit(main(sys.argv[1:])) ^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4077, in main return dispatcher.execute(OptionParser(), argv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subcommand.py", line 253, in execute return command(parser, args[1:]) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 3468, in CMDsync ret = client.RunOnDeps('update', args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 2294, in RunOnDeps self._cipd_root.run(command) File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1844, in run self.ensure() File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1792, in ensure gclient_utils.CheckCallAndFilter(cmd, File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_utils.py", line 638, in CheckCallAndFilter kid = subprocess2.Popen(args, ^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 158, in init raise OSError( OSError: Execution failed with error: [Errno 2] No such file or directory: 'cipd'. Check that None or cipd exist and have execution permission. make: ** [Makefile:80: sync] Error 1 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 13:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) | dart在Android14上会有这个问题,不是android-sdk的问题,而且不知道问题是什么。 mumumusuc/termux-android-sdk#3#23 可以自己尝试在Android14上的termux中编译dart-sdk,大概需要20GB剩余空间。 报错,Package 'gtk3' has no installation candidate 找不到这个gtk3这个要咋解决,是要换源吗 apt install x11-repo apt install gtk3 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
确认engine目录下有cpid这个文件的话,应该是没设置执行路径,在engine目录下执行export PATH=$PATH:$(pwd)
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
我可以用命令指定cipd路径吗
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 17:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) |
你好,我在编译方面出了一个问题,这是log,好像找不到cipd。那么我接下来该如何安装这个依赖呢? ~/termux-flutter/engine $ make sync /data/data/com.termux/files/usr/bin/python3 /data/data/com.termux/files/home/termux-flutter/engine/gclient.py sync -DR --with_branch_heads --with_tags --no-history 53>Syncing projects: 37% (47/124) Syncing projects: 100% (132/132), done. Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 147, in init super(Popen, self).init(args, kwargs) File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1951, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'cipd' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/metrics.py", line 297, in print_notice_and_exit yield File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4091, in sys.exit(main(sys.argv[1:])) ^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4077, in main return dispatcher.execute(OptionParser(), argv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subcommand.py", line 253, in execute return command(parser, args[1:]) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 3468, in CMDsync ret = client.RunOnDeps('update', args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 2294, in RunOnDeps self._cipd_root.run(command) File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1844, in run self.ensure() File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1792, in ensure gclient_utils.CheckCallAndFilter(cmd, File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_utils.py", line 638, in CheckCallAndFilter kid = subprocess2.Popen(args, ^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 158, in init raise OSError( OSError: Execution failed with error: [Errno 2] No such file or directory: 'cipd'. Check that None or cipd exist and have execution permission. make: ** [Makefile:80: sync] Error 1 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 13:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) | dart在Android14上会有这个问题,不是android-sdk的问题,而且不知道问题是什么。 mumumusuc/termux-android-sdk#3#23 可以自己尝试在Android14上的termux中编译dart-sdk,大概需要20GB剩余空间。 报错,Package 'gtk3' has no installation candidate 找不到这个gtk3这个要咋解决,是要换源吗 apt install x11-repo apt install gtk3 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
确认engine目录下有cpid这个文件的话,应该是没设置执行路径,在engine目录下执行export PATH=$PATH:$(pwd)
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
我还想试试看
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 17:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) |
你好,我在编译方面出了一个问题,这是log,好像找不到cipd。那么我接下来该如何安装这个依赖呢? ~/termux-flutter/engine $ make sync /data/data/com.termux/files/usr/bin/python3 /data/data/com.termux/files/home/termux-flutter/engine/gclient.py sync -DR --with_branch_heads --with_tags --no-history 53>Syncing projects: 37% (47/124) Syncing projects: 100% (132/132), done. Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 147, in init super(Popen, self).init(args, kwargs) File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1951, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'cipd' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/metrics.py", line 297, in print_notice_and_exit yield File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4091, in sys.exit(main(sys.argv[1:])) ^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4077, in main return dispatcher.execute(OptionParser(), argv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subcommand.py", line 253, in execute return command(parser, args[1:]) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 3468, in CMDsync ret = client.RunOnDeps('update', args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 2294, in RunOnDeps self._cipd_root.run(command) File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1844, in run self.ensure() File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1792, in ensure gclient_utils.CheckCallAndFilter(cmd, File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_utils.py", line 638, in CheckCallAndFilter kid = subprocess2.Popen(args, ^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 158, in init raise OSError( OSError: Execution failed with error: [Errno 2] No such file or directory: 'cipd'. Check that None or cipd exist and have execution permission. make: ** [Makefile:80: sync] Error 1 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 13:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) | dart在Android14上会有这个问题,不是android-sdk的问题,而且不知道问题是什么。 mumumusuc/termux-android-sdk#3#23 可以自己尝试在Android14上的termux中编译dart-sdk,大概需要20GB剩余空间。 报错,Package 'gtk3' has no installation candidate 找不到这个gtk3这个要咋解决,是要换源吗 apt install x11-repo apt install gtk3 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
确认engine目录下有cpid这个文件的话,应该是没设置执行路径,在engine目录下执行export PATH=$PATH:$(pwd)
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
还是找不到cipd文件,但是单独运行cipd可以( ˊ ᵕ ˋ 💦)。好奇怪👉👈 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 17:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) | 你好,我在编译方面出了一个问题,这是log,好像找不到cipd。那么我接下来该如何安装这个依赖呢? ~/termux-flutter/engine $ make sync /data/data/com.termux/files/usr/bin/python3 /data/data/com.termux/files/home/termux-flutter/engine/gclient.py sync -DR --with_branch_heads --with_tags --no-history 53>Syncing projects: 37% (47/124) Syncing projects: 100% (132/132), done. Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 147, in init super(Popen, self).init(args, kwargs) File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1951, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'cipd' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/metrics.py", line 297, in print_notice_and_exit yield File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4091, in sys.exit(main(sys.argv[1:])) ^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4077, in main return dispatcher.execute(OptionParser(), argv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subcommand.py", line 253, in execute return command(parser, args[1:]) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 3468, in CMDsync ret = client.RunOnDeps('update', args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 2294, in RunOnDeps self._cipd_root.run(command) File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1844, in run self.ensure() File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1792, in ensure gclient_utils.CheckCallAndFilter(cmd, File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_utils.py", line 638, in CheckCallAndFilter kid = subprocess2.Popen(args, ^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 158, in init raise OSError( OSError: Execution failed with error: [Errno 2] No such file or directory: 'cipd'. Check that None or cipd exist and have execution permission. make: [Makefile:80: sync] Error 1 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 13:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) | dart在Android14上会有这个问题,不是android-sdk的问题,而且不知道问题是什么。 mumumusuc/termux-android-sdk#3#23 可以自己尝试在Android14上的termux中编译dart-sdk,大概需要20GB剩余空间。 报错,Package 'gtk3' has no installation candidate 找不到这个gtk3这个要咋解决,是要换源吗 apt install x11-repo apt install gtk3 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> 确认engine目录下有cpid这个文件的话,应该是没设置执行路径,在engine目录下执行export PATH=$PATH:$(pwd) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: **@.***>
确定PATH设置是对的吗?echo $PATH
有engine的绝对路径,直接cipd
能找到程序?
echo $PATH /data/data/com.termux/files/home/.pub-cache/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/home/termux-flutter/engine:/data/data/com.termux/files/home/termux-flutter/engine
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 18:26 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) |
还是找不到cipd文件,但是单独运行cipd可以( ˊ ᵕ ˋ 💦)。好奇怪👉👈 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 17:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) | 你好,我在编译方面出了一个问题,这是log,好像找不到cipd。那么我接下来该如何安装这个依赖呢? ~/termux-flutter/engine $ make sync /data/data/com.termux/files/usr/bin/python3 /data/data/com.termux/files/home/termux-flutter/engine/gclient.py sync -DR --with_branch_heads --with_tags --no-history 53>Syncing projects: 37% (47/124) Syncing projects: 100% (132/132), done. Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 147, in init super(Popen, self).init(args, kwargs) File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1951, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'cipd' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/metrics.py", line 297, in print_notice_and_exit yield File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4091, in sys.exit(main(sys.argv[1:])) ^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4077, in main return dispatcher.execute(OptionParser(), argv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subcommand.py", line 253, in execute return command(parser, args[1:]) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 3468, in CMDsync ret = client.RunOnDeps('update', args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 2294, in RunOnDeps self._cipd_root.run(command) File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1844, in run self.ensure() File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1792, in ensure gclient_utils.CheckCallAndFilter(cmd, File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_utils.py", line 638, in CheckCallAndFilter kid = subprocess2.Popen(args, ^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 158, in init raise OSError( OSError: Execution failed with error: [Errno 2] No such file or directory: 'cipd'. Check that None or cipd exist and have execution permission. make: * [Makefile:80: sync] Error 1 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 13:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) | dart在Android14上会有这个问题,不是android-sdk的问题,而且不知道问题是什么。 mumumusuc/termux-android-sdk#3#23 可以自己尝试在Android14上的termux中编译dart-sdk,大概需要20GB剩余空间。 报错,Package 'gtk3' has no installation candidate 找不到这个gtk3这个要咋解决,是要换源吗 apt install x11-repo apt install gtk3 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> 确认engine目录下有cpid这个文件的话,应该是没设置执行路径,在engine目录下执行export PATH=$PATH:$(pwd) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
确定PATH设置是对的吗?echo $PATH有engine的绝对路径,直接cipd能找到程序?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
这种是不是设置好了?
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 18:26 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) |
还是找不到cipd文件,但是单独运行cipd可以( ˊ ᵕ ˋ 💦)。好奇怪👉👈 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 17:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) | 你好,我在编译方面出了一个问题,这是log,好像找不到cipd。那么我接下来该如何安装这个依赖呢? ~/termux-flutter/engine $ make sync /data/data/com.termux/files/usr/bin/python3 /data/data/com.termux/files/home/termux-flutter/engine/gclient.py sync -DR --with_branch_heads --with_tags --no-history 53>Syncing projects: 37% (47/124) Syncing projects: 100% (132/132), done. Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 147, in init super(Popen, self).init(args, kwargs) File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 1951, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'cipd' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/data/data/com.termux/files/home/termux-flutter/engine/metrics.py", line 297, in print_notice_and_exit yield File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4091, in sys.exit(main(sys.argv[1:])) ^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 4077, in main return dispatcher.execute(OptionParser(), argv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subcommand.py", line 253, in execute return command(parser, args[1:]) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 3468, in CMDsync ret = client.RunOnDeps('update', args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/gclient.py", line 2294, in RunOnDeps self._cipd_root.run(command) File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1844, in run self.ensure() File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_scm.py", line 1792, in ensure gclient_utils.CheckCallAndFilter(cmd, File "/data/data/com.termux/files/home/termux-flutter/engine/gclient_utils.py", line 638, in CheckCallAndFilter kid = subprocess2.Popen(args, ^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/home/termux-flutter/engine/subprocess2.py", line 158, in init raise OSError( OSError: Execution failed with error: [Errno 2] No such file or directory: 'cipd'. Check that None or cipd exist and have execution permission. make: * [Makefile:80: sync] Error 1 … ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 13:11 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) | dart在Android14上会有这个问题,不是android-sdk的问题,而且不知道问题是什么。 mumumusuc/termux-android-sdk#3#23 可以自己尝试在Android14上的termux中编译dart-sdk,大概需要20GB剩余空间。 报错,Package 'gtk3' has no installation candidate 找不到这个gtk3这个要咋解决,是要换源吗 apt install x11-repo apt install gtk3 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> 确认engine目录下有cpid这个文件的话,应该是没设置执行路径,在engine目录下执行export PATH=$PATH:$(pwd) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
确定PATH设置是对的吗?echo $PATH有engine的绝对路径,直接cipd能找到程序?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
看起来没问题啊,which cipd
也是能显示路径的吧?
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 19:03 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) |
看起来没问题啊,which cipd也是能显示路径的吧?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
没问题,就是构建会出错(◦˙▽˙◦)
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 19:03 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) |
看起来没问题啊,which cipd也是能显示路径的吧?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
~/termux-flutter/engine $ which cipd /data/data/com.termux/files/home/termux-flutter/engine/cipd
有没有可能是安卓14的锅˃ʍ˂
设置后还是相同的错误吗,还是不同的?
一样的,提示找不到cipd文件,看起来就是安卓系统的问题,14好像收缩了某些权限。但是termux-flutter出了不能构建app好像web 和cpp都行👉👈
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年04月18日 19:34 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [mumumusuc/termux-flutter] android sdk报错 (Issue #26) |
设置后还是相同的错误吗,还是不同的?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
好吧,真的难搞😂
~ $ flutter doctor --android-licenses Android sdkmanager tool was found, but failed to run (/data/data/com.termux/files/usr/opt/android-sd k/cmdline-tools/latest/bin/sdkmanager): "ProcessException: strerror_r failed Command: /data/data/com.termux/files/usr/opt/android-s dk/cmdline-tools/latest/bin/sdkmanager --licenses". Try re-installing or updating your Android SDK, visit https://flutter.dev/docs/get-started/install/li nux#android-setup for detailed instructions.
不知道是不是这样安装的,安卓14,构建app也报错这个bug。不知道开发者用的哪个源码构建的sdk,我想自己构建一下安卓14的sdk