我无法通过IDE为包添加Android目标平台 [英] I cannot add Android target platform for packages via IDE

查看:57
本文介绍了我无法通过IDE为包添加Android目标平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于德尔福柏林10.1.2的一个简短愚蠢的问题

Just a quick stupid question about Delphi Berlin 10.1.2

我想将Android平台添加为我的运行时程序包的目标平台之一……似乎无法通过IDE进行.当存在Win32&时,弹出菜单被禁用.Win64已添加到列表中.

I'd like to add Android platform as one of the target platforms for my runtime package... and it seems impossible to do via IDE. Popup menu is disabled when there are Win32 & Win64 added to the list.

推荐答案

调查结果:看起来像个错误(或功能).

当您在精简版中创建项目 安装Android SDK之前..dproj文件不包含行

When You create a project in Starter edition or before installing Android SDK .dproj files does not contain line

<Platform value="Android">False</Platform>

结果:

在安装Android SDK时,Delphi IDE只是不会自动更新.dproj文件...

Delphi IDE just don't automatically update .dproj file when You install Android SDK...

但是,等等,还有更多!

Delphi简化版会自动删除所有平台条目,例如

Delphi Starter Edition automatically remove all platform entries like

<Platform value="Android">True</Platform>
<Platform value="Win64">True</Platform>

无需询问您何时保存项目...(Win32 ofc除外)

without asking when You are saving project... (except Win32 ofc)

因此请注意是否使用简化版,并且您也想为某个与Win64一起使用的GitHub项目做贡献...您必须在提交前手动更正.dproj文件.

So watch out if You use Starter Edition and You want to contribute to some GitHub project that works with Win64 too... You have to correct .dproj files manually before commiting.

解决方案:

手动编辑.dproj文件并添加缺少的平台条目.

Manually edit .dproj file and add missing platform entry.

除了Starter SKU以外,IDE在尚未安装所有(特定)平台的情况下创建项目时,在其他SKU上也表现出相同的行为.

In addition to Starter SKU, IDE exhibits same behavior on other SKU's when you create project while IDE does not have all (specific) platforms yet installed.

IDE的行为有点不一致.它应该

The IDE behaviour is a bit inconsistent. It should

  • 在所有情况下自动更新.dproj文件

  • 根本不要碰它

P.S.我喜欢浪费时间与IDE设计缺陷作斗争...

P.P.S.目标平台Win32似乎不可删除 :P

P.P.S. Target platform Win32 seems to be unremovable :P

这篇关于我无法通过IDE为包添加Android目标平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆