In fact, the real machine can be debugged in one step: https://community.embarcadero.com/answers/android-deploy-to-h-w-error-unable-to-start-gdbserver-on-port-64311
A solution to the Gdbserver "port on Use" error is noted in the quality Portal for XE8 (https://quality.embarcadero.com/b rowse/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 has InstallLocation set to preferexternal.
----------------------------------------------------------------------------------------
Install Delphi XE8 in Win7, if you can't connect your phone, you can "Build all Project", Prompt for "andriod SDK Tools", and need access to "google.com".
When a phone can be connected, a problem may occur, then "C:\Users\Public\Documents\Embarcadero\Studio\16.0\PlatformSDKs\android-sdk-windows\ "Android.jar" in platforms\android-21 "copy to the top-level directory" C:\Users\Public\Documents\Embarcadero\Studio\16.0\PlatformSDKs\ Android-sdk-windows\platforms\ "can be
Real machine can be single-step debugging