简体   繁体   中英

Android Studio 0.8.1 can no longer install app. waiting for device

I upgraded to the latest android studio and as ever it breaks what was working fine before.

If I plug in my android device I can see debug in the debug monitor, it gets detected and i can select it as a device to deploy to, then I get

Waiting for device. Target device: xxxxxxxxxxxx

and nothing else happens.. VERY frustrating. Anyone any ideas on how to resolve?

Here is the resolution: The problem is the way i installed the newer version of Android Studio. Do not install it over your previous installation directory. Create a new directory and move over your SDK into it. This is how I resolved it.

The only error I was eventually able to get from Android Studio was if i tried to run a test I'd see NoSuchMethodError: com.android.builder.model.AndroidArtifact.getOutputs()Ljava/util/Collection;: com.android.builder.model.AndroidArtifact.getOutputs()Ljava/util/Collection;

there has been some other posts referring to this issue. Just make sure you do a clean install and don't crap over your older version.

This issue on the AOSP bug tracker tells you what is going on. A quick fix is getting rid of builder-model-0.11.0.jar from plugins/android/lib in your Android Studio folder. A patch has already been submitted and this probably won't happen again with the next update.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM