I am trying to build Android apps using Eclipse, I am using Sony Xperia Z3 compact to test the apps. Whenever I connect my device to the PC it keeps getting connected then disconnected continuously almost each half a second, which makes it impossible for me to run my apps on it.
I spent much time looking throw the web for a solution but unfortunately I had no luck, for example, here they are solving the problem when the phone isn't recognized only by Eclipse, but my problem is quite different.
I also tried with Xperia Z and got the same problem. My USB debugging mode is enabled and I am using the Mass Storage mode (MSC).
Any help is highly appreciated.