将自定义JAR库添加到Android项目时Delphi10.2中的编译器错误
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了将自定义JAR库添加到Android项目时Delphi10.2中的编译器错误相关的知识,希望对你有一定的参考价值。
我有一个问题,将JAR文件添加到我的项目,我将文件google-play-services-gcm-7.0.0.jar
和google-play-services-gcm-7.0.0.dex.jar
复制到C:Program Files (x86)EmbarcaderoStudio19.0libandroiddebug
,在项目管理器中,在库中我按下恢复系统文件为默认,现在当我编译我得到这个错误..,如何修复这个 ?
PS:我正在学习本教程:https://www.youtube.com/watch?v=0ncuzTy03iE
[Exec Error] The command "PATH C:Program FilesJavajdk1.8.0_60in;C:UsersPublicDocumentsEmbarcaderoInterBase
edistInterBaseXE7IDE_spoof;C:ProgramDataOracleJavajavapath;C:Program Files (x86)EmbarcaderoStudio19.0in;C:UsersPublicDocumentsEmbarcaderoStudio19.0Bpl;C:Program Files (x86)EmbarcaderoStudio19.0in64;C:UsersPublicDocumentsEmbarcaderoStudio19.0BplWin64;C:Program Files (x86)InteliCLS Client;C:Program FilesInteliCLS Client;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;C:Program FilesIntelIntel(R) Management Engine ComponentsIPT;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:Program FilesIntelWiFiin;C:Program FilesCommon FilesIntelWirelessCommon;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Filesdotnet;C:WINDOWSSystem32OpenSSH;C:UsersAL-BusaidiAppDataLocalMicrosoftWindowsApps;;C:UsersAL-BusaidiAppDataLocalProgramsFiddler;%USERPROFILE%AppDataLocalMicrosoftWindowsApps & "D:adt-bundle-windows-x86-20131030sdkuild-tools21.1.2dx.bat" --dex --output="C:UsersAL-BusaidiDownloadsfontes-push4MobileAndroidDebugclasses.dex" "c:program files (x86)embarcaderostudio19.0libAndroidDebugandroid-support-v4.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebugcloud-messaging.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebugfmx.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebuggoogle-analytics-v2.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebuggoogle-play-billing.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebuggoogle-play-licensing.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebuggoogle-play-services-gcm-7.0.0.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebuggoogle-play-services.dex.jar" " exited with code 2.
当我从图书馆中放出google-play-services-gcm-7.0.0.jar
和google-play-services-gcm-7.0.0.dex.jar
时,它成功编译。
试着跑
"D:adt-bundle-windows-x86-20131030sdkuild-tools21.1.2dx.bat" --dex --output="C:UsersAL-BusaidiDownloadsfontes-push4MobileAndroidDebugclasses.dex" "c:program files (x86)embarcaderostudio19.0libAndroidDebugandroid-support-v4.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebugcloud-messaging.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebugfmx.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebuggoogle-analytics-v2.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebuggoogle-play-billing.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebuggoogle-play-licensing.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebuggoogle-play-services-gcm-7.0.0.dex.jar" "c:program files (x86)embarcaderostudio19.0libAndroidDebuggoogle-play-services.dex.jar"
知道错误你有:)
以上是关于将自定义JAR库添加到Android项目时Delphi10.2中的编译器错误的主要内容,如果未能解决你的问题,请参考以下文章
Android Gradle 插件将自定义 Gradle 插件上传到自建 Maven 仓库 ③ ( 配置上传工件 | 将 Gradle 插件 jar 包源码文档上传到本地Maven 仓库 )
将自定义 json 文件添加到 IConfigrutaion 时,我不能再使用 SeBasePath?
如何将自定义 UIButton 添加到 Interface Builder 对象库?