Com.android.ddmlib.SyncException: Too many open files

When I try to run my application in Eclipse on my device, I started to get many com.android.ddmlib.SyncException: Too many open files in the console.

Why is this and what does it mean? What can I do to stop this?

+43
android file
Mar 18 '11 at 15:49
source share
5 answers

Essentially, this means you have a memory problem. This is most likely a leak.

Reboot the phone first and make sure you still get the error. If so, you will need to start digging in your code and find out where you are flowing!

Need more help? Send the code!

+50
Mar 18 2018-11-18T00:
source share

Turn the DEBUG USB power off and on again. It works for me. It seems like something like a USB sync issue while debugging on my device.

Hope this helps!

+57
Jun 21 2018-11-11T00:
source share

When you install and test your application many times on your phone, you may receive this error message.

Disconnect the phone from the USB cable, and then reconnect it.

+8
Mar 26 '11 at 20:43
source share

I started getting this after adding links that launched the google play app to link users to other gaming apps, like
Intent browserIntent = new Intent (Intent.ACTION_VIEW, Uri.parse ("market: // details? Id = my game"));

when I exit my application and try to restart it from eclipse, I would either get “too many open files” or I would get the message “Move current activity to the foreground”, which simply reopens the googleplay page that I started from my previous launch the application. it seems that the secondary intention of “google play” hangs up after I walked away from everything and prevents the application from re-launching from eclipse. unfortunately, just adding browserIntent.finish () from the application does not work, the command (and the recommended fix for the action label) is not accepted.

I did not have this problem when I linked to other applications through a web browser, just opening a web page in my application. I may have to return to this method.

This link shows a suggestion to exit the intention, which began with your main action, although I’m working on something simpler: How to stop activity in android using the intention? .

0
Jul 19 '13 at 16:13
source share

finally one solution. if you encounter a problem during installation or uninstallation. Just reboot your device and see the magic. :)

0
Oct 22 '13 at 5:27
source share



All Articles