`ionic capacitor run android` does not allow selection of device, then crashes
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- cli, mobile-dev
调研方向
从 Ionic CLI 的 capacitor run android 命令以及报告中显示的 Capacitor CLI/native-run 设备列表路径开始。使用列出的 Capacitor 3.1.1 和 native-run 1.4.0 版本重现交互式设备提示,然后跟踪选择处理过程。当选择设备时不再出现 value 错误且 Android 运行继续时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Description:
After updating to Capacitor 3 ionic capacitor run android now attempts to directly launch the App on a device instead of simply opening Android Studio. The device selection fails.
First ? Which device would you like to target? (Use arrow keys) is shown. If any arrow key is pressed, the (Use arrow keys) text disappears. Pressing enter produces the output
TypeError: Cannot read property 'value' of undefined
and nothing further happens.
Steps to Reproduce:
- Run
ionic capacitor run androidin a Capacitor 3 project.
Output:
xxx@xxx:~/XXXXXXXX$ ionic capacitor run android --verbose
ionic:lib Terminal info: { ci: false, shell: '/bin/bash', tty: true, windows: false } +0ms
ionic:lib CLI global options: { _: [ 'capacitor', 'run', 'android' ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, project: null, '--': [] } +2ms
ionic:lib:project Project type from config: @ionic/angular (angular) +0ms
ionic:lib:project Project details: { context: 'app', type: 'angular', errors: [], configPath: '/home/xxx/xxx/ionic.config.json' } +0ms
ionic Context: { binPath: '/home/xxx/.nvm/versions/node/v14.17.0/lib/node_modules/@ionic/cli/bin/ionic', libPath: '/home/xxx/.nvm/versions/node/v14.17.0/lib/node_modules/@ionic/cli', execPath: '/home/xxx/xxx/xxx/xxx', version: '6.16.3' } +0ms
ionic:lib:integrations:capacitor Getting config with Capacitor CLI: [ 'config', '--json' ] +0ms
ionic:lib:integrations:capacitor Could not get config from Capacitor CLI (probably old version) +267ms
ionic:commands:capacitor:run Getting native targets for 'android' with Capacitor CLI: [ 'run', 'android', '--list', '--json' ] +0ms
? Which device would you like to target?
TypeError: Cannot read property 'value' of undefined
My ionic info:
Ionic:
Ionic CLI : 6.16.3 (/home/xxx/.nvm/versions/node/v14.17.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.6.6
@angular-devkit/build-angular : 0.1102.11
@angular-devkit/schematics : 11.2.11
@angular/cli : 11.2.11
@ionic/angular-toolkit : 3.1.1
Capacitor:
Capacitor CLI : 3.1.1
@capacitor/android : 3.1.1
@capacitor/core : 3.1.1
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : 1.4.0
System:
NodeJS : v14.17.0 (/home/xxx/.nvm/versions/node/v14.17.0/bin/node)
npm : 6.14.13
OS : Linux 5.4
- 主要语言
- TypeScript
- 星标
- 2k
- 派生
- 681
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ionic-team/ionic-cli 的其他 Issue
-
triage
难度 1/5 1 小时以内 新手友好度 65/100
ionic-team/ionic-cli#5016 ·
-
triage
难度 5/5 一周以上 新手友好度 15/100
ionic-team/ionic-cli#5131 ·
-
triage
难度 3/5 1-2 天 新手友好度 56/100
ionic-team/ionic-cli#5130 ·
-
triage
难度 3/5 1-2 天 新手友好度 72/100
ionic-team/ionic-cli#5129 ·
-
triage
难度 3/5 1-2 天 新手友好度 42/100
ionic-team/ionic-cli#5127 · 2 条评论 ·
查看 ionic-team/ionic-cli 的全部 Issue
相似的 Issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
-
Crush 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
catppuccin/catppuccin#3125 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
ElementsProject/cln-application#167 · 1 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 75/100
Quantco/pnpm-licenses#17 ·
-
难度 2/5 1-3 小时 新手友好度 75/100