事实上,真机可以单步调试:
https://community.embarcadero.com/answers/android-deploy-to-h-w-error-unable-to-start-gdbserver-on-port-64311
A solution to the gdbserver "port in use" error was noted in the Quality Portal for XE8 (
https://quality.embarcadero.com/browse/RSP-11079).
Details copied from the comments in RSP-11079:
1) Open: Project | Options | Version Info
2) Select Target as "Debug configuration - Android platform"
3) Setup property InstallLocation = internalOnly
4) Save the project and try to debug
The default project options have installLocation set to preferExternal.
----------------------------------------------------------------------------------------
在Win7中安装Delphi XE8,如果不能连接手机,可以“Build All Project”,提示下载“Andriod SDK Tools”,并且需要访问“google.com”。
当可以连接手机后,可能出现下图中问题,则将“C:\Users\Public\Documents\Embarcadero\Studio\16.0\PlatformSDKs\android-sdk-windows\platforms\android-21”中的“android.jar”copy到上一级目录“C:\Users\Public\Documents\Embarcadero\Studio\16.0\PlatformSDKs\android-sdk-windows\platforms\”中即可