开发者

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

When开发者_开发问答 I attempt to run my application in Eclipse on my device, I've started getting alot of com.android.ddmlib.SyncException: Too many open files exceptions/errors in the console.

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


Switch DEBUG USB off and on again. It works for me. It seems to be some sort of problem with USB sync when debuggin in my device.

Hope it helps!


Essentially, that means you have a memory problem. More than likely it is a leak.

First restart your phone and verify you are still getting the error. If so you are going to need to start digging in your code and find out where you are leaking!

Need more help? Post some code!


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

Unplug the phone from the USB cable and then plug it in again.


I started getting this after adding links which started the 'google play' app to link users to my other game apps, e.g.
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=my game"));

when I quit my app, and tried to relaunch it from eclipse, i'd either get the 'too many open files' or i'd get the 'bringing current activity to front' message, which would just reopen the googleplay page I had launched from within my previous application run. it seems that secondary 'google play' intent is hanging on after I quit everything and is preventing the application relaunch from eclipse. unfortunately, just adding browserIntent.finish() from within the app doesn't work, the command (and the suggested (Activity) label fix) isn't accepted.

I didn't have this problem when I linked to my other apps through the web browser, just opening a web page to my app. I may have to switch back to that method.

this link shows a suggestion on quitting an intent started by your main activity, although i'm working on something simpler: How to stop an activity in android using intent?.


finally one solution. if you facing problem in instal or uninstall. Simply restart your Device and see magic . :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜