无法在Delphi Tokyo 10.2.3中编译Android应用程序

时间:2018-04-22 15:50:00

标签: android delphi

经过多次试验和错误后,我终于设法安装了我认为所有必要文件(SDK,NDK和Java),用于在Delphi Tokyo 10.2.3上编译Android。这是我在Android上的第一次尝试。我已经为Windows编写了多年的应用程序。 Android操作系统对我来说很新。我从Embarcadero下载了样本HomeProject(组),并尝试编译组中三个项目中的第二个和第三个。我选择了“Android SDK 24.3.3 32bit”。使用这个非常长的错误消息立即停止编译:

  

[Exec Error]命令“PATH \ bin; c:\ Program Files \ Java \ jdk-9.0.4; C:\ ProgramData \ Oracle \ Java \ javapath; C:\ Program Files(x86)\ Embarcadero \ Studio \ 19.0 \ bin; C:\ Users \ Public \ Documents \ Embarcadero \ Studio \ 19.0 \ Bpl; C:\ Program Files(x86)\ Embarcadero \ Studio \ 19.0 \ bin64; C:\ Users \ Public \ Documents \ Embarcadero \ Studio \ 19.0 \ Bpl \ Win64; C:\ Program Files(x86)\ Embarcadero \ Studio \ 18.0 \ bin; C:\ Users \ Public \ Documents \ Embarcadero \ Studio \ 18.0 \ Bpl; C:\ Program Files(x86 )\ Embarcadero \ Studio \ 18.0 \ bin64; C:\ Users \ Public \ Documents \ Embarcadero \ Studio \ 18.0 \ Bpl \ Win64; C:\ Program Files(x86)\ CollabNet; C:\ Program Files(x86)\ Embarcadero \ Studio \ 15.0 \ bin; C:\ Users \ Public \ Documents \ Embarcadero \ Studio \ 15.0 \ Bpl; C:\ Program Files(x86)\ Embarcadero \ Studio \ 15.0 \ bin64; C:\ Users \ Public \ Documents \ Embarcadero \ Studio \ 15.0 \ Bpl \ Win64; C:\ Program Files(x86)\ Intel \ iCLS Client \; C:\ Program Files \ Intel \ iCLS Client \; C:\ WINDOWS \ system32; C:\ WINDOWS; C :\ WINDOWS \ System32 \ Wbem; C:\ WINDOWS \ System32 \ WindowsPowerShell \ v1.0 \; C:\ Program Files \ Intel \ Intel (R)管理引擎组件\ DAL; C:\ Program Files \ Intel \ Intel(R)管理引擎组件\ IPT; C:\ Program Files(x86)\ Intel \ Intel(R)Management Engine Components \ DAL; C: \ Program Files(x86)\ Intel \ Intel(R)Management Engine Components \ IPT; C:\ Program Files(x86)\ Embarcadero \ HTML5 Builder \ 6.0 \ apache-ant-1.8.2 \ bin; C:\ Program Files (x86)\ Common Files \ lenovo \ easyplussdk \ bin; C:\ Program Files(x86)\ Windows Kits \ 10 \ Windows Performance Toolkit \; C:\ Program Files(x86)\ NVIDIA Corporation \ PhysX \ Common; C: \ Program Files(x86)\ Common Files \ Apple \ Internet Services \; C:\ WINDOWS \ system32; C:\ WINDOWS; C:\ WINDOWS \ System32 \ Wbem; C:\ WINDOWS \ System32 \ WindowsPowerShell \ v1.0 \ ; C:\用户\肯尼斯\应用程序数据\本地\微软\ WindowsApps; C:\用户\肯尼斯\应用程序数据\漫游\ Dashlane \ 4.6.5.21982 \ BIN \ Firefox_Extension {442718d9-475e-452A-b3e1-fb1ee16b8e9f} \组件; C:\ Users \用户肯尼斯\应用程序数据\漫游\ Dashlane \ 4.6.6.23032 \ BIN \ Firefox_Extension {442718d9-475e-452A-b3e1-fb1ee16b8e9f} \组件; C:\ Users \用户肯尼斯\应用程序数据\漫游\达斯hlane \ 5.10.0.18444 \ bin \ Firefox_Extension {442718d9-475e-452a-b3e1-fb1ee16b8e9f} \ components; C:\ Users \ Kenneth \ AppData \ Roaming \ Dashlane \ 5.10.0.18444 \ ucrt& “C:\ Users \ Public \ Documents \ Embarcadero \ Studio \ 19.0 \ CatalogRepository \ AndroidSDK-2433_19.0.29899.2631 \ build-tools \ 27.0.3 \ dx.bat”--dex --output =“C:\ Users \ Public \ Documents \ Embarcadero \ Studio \ 19.0 \ Samples \ Object Pascal \ App Home Screens \ Android \ Release \ classes.dex“”c:\ program files(x86)\ embarcadero \ studio \ 19.0 \ lib \ Android \ Release \ android-support-v4.dex.jar“”c:\ program files(x86)\ embarcadero \ studio \ 19.0 \ lib \ Android \ Release \ cloud-messaging.dex.jar“”c:\ program files(x86)\ embarcadero \ studio \ 19.0 \ lib \ Android \ Release \ fmx.dex.jar“”c:\ program files(x86)\ embarcadero \ studio \ 19.0 \ lib \ Android \ Release \ google-analytics-v2.dex.jar“ “c:\ program files(x86)\ embarcadero \ studio \ 19.0 \ lib \ Android \ Release \ google-play-billing.dex.jar”“c:\ program files(x86)\ embarcadero \ studio \ 19.0 \ lib \ Android \ Release \ google-play-licensing.dex.jar“”以代码1退出。

所以,代码1退出了什么?什么? “... dx.bat”--dex --output =“......打电话?

任何想法,任何人?

2 个答案:

答案 0 :(得分:0)

在dos命令行中运行

  

“C:\用户\公共\文件\ Embarcadero的\工作室\ 19.0 \ CatalogRepository \ AndroidSDK-2433_19.0.29899.2631 \积聚工具\ 27.0.3 \ dx.bat”   --dex --output =“C:\ Users \ Public \ Documents \ Embarcadero \ Studio \ 19.0 \ Samples \ Object   Pascal \ App主屏幕\ Android \ Release \ classes.dex“”c:\ program files   (86)\ Embarcadero公司\工作室\ 19.0 \ LIB \ Android版\发布\ Android的支持,v4.dex.jar”   “c:\ program files   (86)\ Embarcadero的\工作室\ 19.0 \ lib中\的Android \发布\云messaging.dex.jar”   “c:\ program files   (86)\ Embarcadero的\工作室\ 19.0 \ lib中\的Android \发布\ fmx.dex.jar”   “c:\ program files   (86)\ Embarcadero的\工作室\ 19.0 \ lib中\的Android \发布\ Google处理分析-v2.dex.jar”   “c:\ program files   (86)\ Embarcadero公司\工作室\ 19.0 \ LIB \ Android版\发布\的Google Play-billing.dex.jar”   “c:\ program files   (86)\ Embarcadero的\工作室\ 19.0 \ lib中\的Android \发布\ Google处理播放licensing.dex.jar“

你会知道答案:)我不能在评论中发布这个,因为它太冗长所以我在这里作为回复发布

答案 1 :(得分:0)

安装了太多Java版本!开始卸载旧的,但它打破了我的电脑,我最终完全重新安装Windows 10。现在它有效。