我正在尝试将fastlane用于和and应用程序,我在这个用于屏幕抓取的fastlane命令中遇到了这个问题:
bundle exec fastlane screengrab
在使用屏幕抓取时,我得到了这个错误:
13:42:12:在C:/User/Ramin/AppData/Local/ Android / Sdk 13:42:12上找不到
adb
命令:请确保安装了Android,并显示了platform-tools目录 好了!找不到亚行指挥部
我以前见过同样的问题。但问题仍然存在。有什么最新消息吗?
发布于 2020-09-06 13:41:46
您必须将亚行添加到您的路径中,即通过Windows上的环境变量。然后重新启动命令行,然后重试。
发布于 2020-09-07 05:28:03
这个问题存在于Windows (问题)中,解决方案是更改库。
我用图书馆和它的工作做了这个!!
dir: fastlane/screengrab/lib/screengrab/android_environment.rb
原装:
def find_adb(platform_tools_path)
return FastlaneCore::CommandExecutor.which('adb') unless platform_tools_path
adb_path = File.join(platform_tools_path, 'adb')
return executable_command?(adb_path) ? adb_path : nil
end
修改:
def find_adb(platform_tools_path)
return 'adb'
end
https://stackoverflow.com/questions/63763158
复制相似问题