[英]Delphi 10 Seattle - Failed Android Project Build
I am running Delphi 10 Seattle with the Mobile Development Tools. 我正在使用移动开发工具运行Delphi 10 Seattle。
I have reinstalled the Android Tools/SDK's/NDK multiple times to no avail. 我多次重新安装Android Tools / SDK的/ NDK无济于事。
I have never managed to get an android project compiled, i always got various errors, but I've seemed to reach a roadblock with this one :- 我从来没有设法编译一个Android项目,我总是遇到各种错误,但我似乎遇到了这个问题的障碍: -
I get a total of 1461 when building the project, all are very similar, im putting just 3 below, but will post more if needed. 在构建项目时总共得到了1461,所有都非常相似,我只在下面放了3个,但如果需要的话会发布更多。
[DCC Error] E2597
C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: error: cannot find -ldl
C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: error: cannot find -lc
C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: error: cannot find -lm
And the fatal error :- 而致命错误: -
[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)
The project itself is just a Hello World Application to test if building is working, i've seen similar errors when using 3rd party libraries in the application, but no fix seemed to help. 项目本身只是一个Hello World应用程序来测试构建是否正常工作,我在应用程序中使用第三方库时看到了类似的错误,但没有任何修复似乎有帮助。
I have double checked all file paths in the SDK Manager, and have posted the filepaths below :- 我已经在SDK Manager中仔细检查了所有文件路径,并发布了以下文件路径: -
Android SDK 24.3.3 32 Bit Android SDK 24.3.3 32位
SDK:-
SDK Base Path: C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-sdk-windows
ZipAlign Location: C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-sdk-windows\build-tools\22.0.1\ZipAlign.exe
Android Location: C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-sdk-windows\tools\android.bat
Adb location:
C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-sdk-windows\platform-tools\adb.exe
Aapt Location:
C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-sdk-windows\build-tools\25.0.2\aapt.exe
SDK API-Level Location:
C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-sdk-windows\platforms\android-25
NDK:-
NDK Base Path:
C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-ndk-r9c
arm-linux-androideabi-ld.exe Location:
C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe
arm-linux-androidaebi-strip.exe Location :
C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-strip.exe
gbdserver Location :
C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-ndk-r9c\prebuilt\android-arm\gdbserver\gdbserver
NDK API Location :
C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-ndk-r9c\platforms\android-19
C++ Builder NDK Library Path:
C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-ndk-r9c\platforms\android-19\arch-arm\usr\lib
Delphi NDK Library Path:
C:\Users\Test\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi-v7a
Java:-
Keytool Location:
C:\Program Files\Java\jdk1.8.0_66\bin\keytool.exe
Jarsigner Location:
C:\Program Files\Java\jdk1.8.0_66\bin\jarsigner.exe
Thanks in Advance. 提前致谢。
I'm not entirely sure how this happened. 我不完全确定这是怎么发生的。
But to fix it, I went into the SDK Manager and deleted the entire SDK set and let the installer reinstall it, I had done this previously and had made no changes between attempts, so not sure why it worked, but it did anyway. 但要修复它,我进入SDK管理器并删除整个SDK集并让安装程序重新安装它,我之前已经完成了这个并且在尝试之间没有做任何更改,因此不确定它为什么会起作用,但它无论如何都做了。
I hope this helps someone else. 我希望这有助于其他人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.