简体   繁体   English

如何在Delphi xe7中编译和运行多设备应用程序?

[英]How can I Compiling and running Multi-Device Application in Delphi xe7?

I am a beginner. 我是初学者。 I am using Delphi XE7. 我正在使用Delphi XE7。 I have built a 32 bit Windows application successfully without any error. 我已经成功构建了一个32位Windows应用程序,没有任何错误。 Now I want to learn/create an Android application, so I have tried to compile and run some sample project. 现在,我想学习/创建一个Android应用程序,因此我尝试编译并运行一些示例项目。 But every time I have a problem compiling these projects. 但是每次我在编译这些项目时遇到问题。

  1. I have installed a USB driver for my GT-I8552B 我已经为GT-I8552B安装了USB驱动程序

  2. Samsung GT-I8552B supports NEON (second generation), ARMv7 三星GT-I8552B支持NEON(第二代),ARMv7

  3. Android SDK manager/SDK tool with ARM EABI v7a System Image installed in my desktop computer (included with XE7). 我的台式计算机(XE7附带)中安装了带有ARM EABI v7a系统映像的Android SDK管理器/ SDK工具。

  4. My phone's OS version 4.4.1 and I am using 32 bit Windows 7 on my PC. 手机的操作系统版本为4.4.1,并且我在PC上使用的是32位Windows 7。

I have enabled USB Debugging and try to compile a project, but an error occurs: 我已启用USB调试并尝试编译项目,但发生错误:

[DCC Fatal Error] Project1.dpr(1): F2048 Bad unit format: 'c:\program files\embarcadero\studio\15.0\lib\Android\debug\System.dcu' - Expected version: 28.0, ARM(ARM) Found version: 0.0, Windows Ansi(x86)

图片

I have added an AVD and run it in the Android Emulator, but the same error occurs: 我添加了一个AVD并在Android模拟器中运行它,但是发生了相同的错误:

图片

How can I compile and run a Multi-Device Application in Delphi XE7? 如何在Delphi XE7中编译和运行多设备应用程序?

This the library path - $(BDSLIB)\\$(Platform)\\release;$(BDSUSERDIR)\\Imports;$(BDS)\\Imports;$(BDSCOMMONDI‌​R)\\Dcp;$(BDS)\\include;C:\\Program Files\\FastReports\\LibD21;C:\\Program Files\\Raize\\CS5\\Lib\\RS-XE7\\Win32 . 该库路径-$(BDSLIB)\\ $(Platform)\\ release; $(BDSUSERDIR)\\ Imports; $(BDS)\\ Imports; $(BDSCOMMONDI‌R)\\ Dcp; $(BDS)\\ include; C:\\程序文件\\ FastReports \\ LibD21; C:\\ Program Files \\ Raize \\ CS5 \\ Lib \\ RS-XE7 \\ Win32。 Search path default value from Debug . 从Debug搜索路径的默认值。 Please tell me details how can I repair system.dcu for android compiler or which will the correct path of system.dcu for android ? 请告诉我详细信息,我该如何修复适用于android编译器的system.dcu或将为Android修复system.dcu的正确路径?

The compiler is complaining that the System.dcu file it found was compiled for Win32 instead of Android. 编译器抱怨发现的System.dcu文件是为Win32而不是Android编译的。 It is very unlikely that the Android version of System.dcu was compiled for Win32. System.dcu版本不可能为Win32编译。 So either your search paths are not configured correctly, or you probably messed up your IDE installation. 因此,您的搜索路径配置不正确,或者您可能弄乱了IDE的安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM