问题
I am able to debug on an Android Emulator, but when I want to debug on ASUS Memorypad 7
it doesn't work.
After I hit cancel it gives the following message:
Unable to start gdbserver on port '64311'. Port is already in use.
I have changed the port several times in the Run parameters, but it still gives the same message.
回答1:
Try restarting everything first. Then follow Embarcadero`s guide:
Unable to start gdbserver on port : Port is already in use
where is the port number being used by the Android gdbserver:
Power off or restart your Android device and then run your application again.
Choose another debug port:
Select Run > Parameters and enter the following in the Parameters field:
-debugport=<n> where <n> is an alternate debug port, such as 54321.
Then click OK.
Link Reference
回答2:
In the end I needed to get another device. I'm using Huawei's MediaPad M1 8.0 now and that works after I installed HiSuite.
来源:https://stackoverflow.com/questions/28429137/why-cant-i-debug-a-delphi-xe7-android-app-on-my-device