gpt4 book ai didi

android - ruby 试运行没有这样的文件或目录/platform-tools/adb (Errno::ENOENT)

转载 作者:太空宇宙 更新时间:2023-11-03 17:09:43 25 4
gpt4 key购买 nike

我该如何解决这个问题?当我使用 dryrun 时。日志在这里。

➜ ~ dryrun git@github.com:cesarferreira/android-helloworld.git Searching for devices... /Users/baidu/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/open3.rb:211:in spawn': No such file or directory - /platform-tools/adb
(Errno::ENOENT) from
/Users/baidu/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/open3.rb:211:in
popen_run' from /Users/baidu/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/open3.rb:99:in popen3' from
/Users/baidu/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/gems/2.0.0/gems/dryrun-0.8.1/lib/dryrun/dryrun_utils.rb:50:in
run' from /Users/baidu/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/gems/2.0.0/gems/dryrun-0.8.1/lib/dryrun/dryrun_utils.rb:46:in run_adb' from
/Users/baidu/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/gems/2.0.0/gems/dryrun-0.8.1/lib/dryrun.rb:108:in
pick_device' from /Users/baidu/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/gems/2.0.0/gems/dryrun-0.8.1/lib/dryrun.rb:171:in call' from
/Users/baidu/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/gems/2.0.0/gems/dryrun-0.8.1/bin/dryrun:5:in
' from /Users/baidu/.rvm/rubies/ruby-2.0.0-p643/bin/dryrun:23:in load' from
/Users/baidu/.rvm/rubies/ruby-2.0.0-p643/bin/dryrun:23:in
'

最佳答案

您遇到的问题是 dryrun 无法识别 adb 路径。 adb 路径需要设置为 ANDROID_HOMEdryrun 才能正常工作。

解决此问题的步骤:

  1. echo export "ANDROID_HOME=/Users/yourName/Library/Android/sdk">> ~/.bash_profile

  2. source ~/.bash_profile

  3. echo $ANDROID_HOME

  4. 测试 dryrun git@github.com:cesarferreira/android-helloworld.git 🎉

关于android - ruby 试运行没有这样的文件或目录/platform-tools/adb (Errno::ENOENT),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40798553/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com