Problem: com.android.ddmlib.SyncException: Too many open files
Solution:
During application development and testing the same on the device, I have faced this exception: com.android.ddmlib.SyncException: Too many open files
I have tried to find out the possible solution to resolve the above exception, so i am not sure about the solution but i got the StackOverflow link first and tried the same and i have received the solution. I think it may be helpful to others as well So let me sort out the possible solution for this exception:
- This may be some sort of problem with USB sync when debugging in my device. So Switch DEBUG USB off and on again.
- You can run something like “Advanced Task Killer” it will close many application runnung in the background
- Unplug the phone from the USB cable and then plug it in again
- Restart your phone as this exception may be due to a Memory leak problem.