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

不支持Flutter项目? #29

Closed
DreamPWJ opened this issue Apr 15, 2021 · 13 comments
Closed

不支持Flutter项目? #29

DreamPWJ opened this issue Apr 15, 2021 · 13 comments
Labels

Comments

@DreamPWJ
Copy link

image

@DreamPWJ
Copy link
Author

image
ios项目可以, flutter同时打android和ios包, android获取版本信息失败,我感觉是因为包不在android工程目录下,而ios的包在ios工程目录下

@DreamPWJ
Copy link
Author

DreamPWJ commented Apr 15, 2021

难道需要我复制一个包到android目录下 只为解析信息?@icyleaf

@icyleaf
Copy link
Owner

icyleaf commented Apr 15, 2021

没有做过 flutter,请问 flutter 的输出目录在哪里?

你可以通过手动设置参数:

app_info(file: '')

@icyleaf
Copy link
Owner

icyleaf commented Apr 15, 2021

而且这个大概率是 fastlane-plugin-app_info 的问题,请在那边提 issue 😆

@DreamPWJ
Copy link
Author

DreamPWJ commented Apr 15, 2021

是的 fastlane-plugin-app_info 的 指定了包路径了 就是因为包在的路径不是工程路径 输出在根目录build/app/outputs/apk 在android工程外面
image

@icyleaf
Copy link
Owner

icyleaf commented Apr 15, 2021

这个不属于 bug,自定义的项目用自定义的路径

@icyleaf icyleaf closed this as completed Apr 15, 2021
@DreamPWJ
Copy link
Author

DreamPWJ commented Apr 15, 2021

自定义路径了啊,因为不在工程目录报错啊 您可以测试一下, 以后Flutte也是主流,这个目录是flutter标准目录

@DreamPWJ
Copy link
Author

我感觉android解析不只是需要apk包 还依赖android工程目录的相关文件@icyleaf

@icyleaf icyleaf reopened this Apr 15, 2021
@icyleaf icyleaf added the bug label Apr 15, 2021
@icyleaf
Copy link
Owner

icyleaf commented Apr 15, 2021

我找了一个 flutter 的 apk 貌似有些线索了,能把你第一个图中 fastlane finished with errors 后面以文本的形式粘贴过来吗?

@DreamPWJ
Copy link
Author

DreamPWJ commented Apr 15, 2021

重新复现了异常 @icyleaf

18:23:09  +-------------------------------------------+---------+---------------------------------------------+
18:23:09  |                                           Used plugins                                            |
18:23:09  +-------------------------------------------+---------+---------------------------------------------+
18:23:09  | Plugin                                    | Version | Action                                      |
18:23:09  +-------------------------------------------+---------+---------------------------------------------+
18:23:09  | fastlane-plugin-huawei_appgallery_connect | 1.0.15  | huawei_appgallery_connect_submit_for_review |
18:23:09  |                                           |         | huawei_appgallery_connect                   |
18:23:09  |                                           |         | huawei_appgallery_connect_get_app_info      |
18:23:09  | fastlane-plugin-fir_cli                   | 2.0.12  | fir_cli                                     |
18:23:09  | fastlane-plugin-versioning_android        | 0.1.0   | android_get_version_name                    |
18:23:09  |                                           |         | android_set_version_code                    |
18:23:09  |                                           |         | android_set_version_name                    |
18:23:09  |                                           |         | android_get_version_code                    |
18:23:09  | fastlane-plugin-badge                     | 1.5.0   | add_badge                                   |
18:23:09  | fastlane-plugin-app_info                  | 0.4.1   | app_info                                    |
18:23:09  +-------------------------------------------+---------+---------------------------------------------+
18:23:09  
18:23:09  [18:23:09]: ------------------------------
18:23:09  [18:23:09]: --- Step: default_platform ---
18:23:09  [18:23:09]: ------------------------------
18:23:09  [18:23:09]: Driving the lane 'get_app_info' 🚀
18:23:09  [18:23:09]: 获取App信息
18:23:09  
18:23:09  [18:23:09]: ----------------------
18:23:09  [18:23:09]: --- Step: app_info ---
18:23:09  [18:23:09]: ----------------------
18:23:09  +------------------+--------------+
18:23:09  |          Lane Context           |
18:23:09  +------------------+--------------+
18:23:09  | DEFAULT_PLATFORM | android      |
18:23:09  | PLATFORM_NAME    |              |
18:23:09  | LANE_NAME        | get_app_info |
18:23:09  +------------------+--------------+
18:23:09  [18:23:09]: Android::NotFoundError
18:23:09  
18:23:09  +------+------------------+-------------+
18:23:09  |           fastlane summary            |
18:23:09  +------+------------------+-------------+
18:23:09  | Step | Action           | Time (in s) |
18:23:09  +------+------------------+-------------+
18:23:09  | 1    | default_platform | 0           |
18:23:09  | 💥   | app_info         | 0           |
18:23:09  +------+------------------+-------------+
18:23:09  
18:23:09  [18:23:09]: fastlane finished with errors
18:23:09  
18:23:09  Looking for related GitHub issues on fastlane/fastlane...
18:23:09  
18:23:10  Found no similar issues. To create a new issue, please visit:
18:23:10  https://github.com/fastlane/fastlane/issues/new
18:23:10  Run `fastlane env` to append the fastlane environment to your issue
18:23:10  /Library/Ruby/Gems/2.6.0/gems/ruby_android_apk-0.7.7.1/lib/android/resource.rb:196:in `res_hex_id': [!] Android::NotFoundError (Android::NotFoundError)
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/ruby_android_apk-0.7.7.1/lib/android/resource.rb:175:in `strid2int'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/ruby_android_apk-0.7.7.1/lib/android/resource.rb:131:in `find'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/ruby_android_apk-0.7.7.1/lib/android/resource.rb:481:in `find'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/app-info-2.4.3/lib/app_info/apk.rb:51:in `name'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:42:in `block in common_columns'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:40:in `each'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:40:in `each_with_object'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:40:in `common_columns'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:36:in `table_columns'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:27:in `print_table!'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:17:in `run'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:229:in `chdir'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
18:23:10  	from ../GeneralFastfile:35:in `block in parsing_binding'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/lane.rb:33:in `call'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/bin/fastlane:23:in `<top (required)>'
18:23:10  	from /usr/local/bin/fastlane:23:in `load'
18:23:10  	from /usr/local/bin/fastlane:23:in `<main>'
18:23:10  /Library/Ruby/Gems/2.6.0/gems/ruby_android_apk-0.7.7.1/lib/android/resource.rb:196:in `res_hex_id': Android::NotFoundError (Android::NotFoundError)
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/ruby_android_apk-0.7.7.1/lib/android/resource.rb:175:in `strid2int'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/ruby_android_apk-0.7.7.1/lib/android/resource.rb:131:in `find'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/ruby_android_apk-0.7.7.1/lib/android/resource.rb:481:in `find'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/app-info-2.4.3/lib/app_info/apk.rb:51:in `name'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:42:in `block in common_columns'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:40:in `each'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:40:in `each_with_object'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:40:in `common_columns'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:36:in `table_columns'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:27:in `print_table!'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-app_info-0.4.1/lib/fastlane/plugin/app_info/actions/app_info_action.rb:17:in `run'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:229:in `chdir'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
18:23:10  	from ../GeneralFastfile:35:in `block in parsing_binding'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/lane.rb:33:in `call'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
18:23:10  	from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.180.1/bin/fastlane:23:in `<top (required)>'
18:23:10  	from /usr/local/bin/fastlane:23:in `load'
18:23:10  	from /usr/local/bin/fastlane:23:in `<main>'

@icyleaf
Copy link
Owner

icyleaf commented Apr 15, 2021

那就是我发现的问题,感谢反馈。已经更新新版本麻烦在帮忙测试看看

@DreamPWJ
Copy link
Author

@icyleaf 可以了 谢谢了

1 similar comment
@DreamPWJ
Copy link
Author

@icyleaf 可以了 谢谢了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants