美文网首页
Execution failed for task ':app:

Execution failed for task ':app:

作者: Timor丶_a51b | 来源:发表于2019-10-17 11:43 被阅读0次

原文地址:https://blog.csdn.net/u014663631/article/details/90768052
Execution failed for task ':app:installDebug'.

com.android.builder.testing.api.DeviceException: No online devices found.

解决办法:

1.输入adb devices 查看当前设备列表及其状态。

          第一次执行此命令会先杀掉adb进程:adb server is out of date, killing....

          等待一会,如果提示,*daemon started sucessfully,那么继续  adb devices 查看设备状态,

          如果是:{

                   * daemon started successfully *
                   List of devices attached
                   emulator-5554   device

           }

            应该就OK了

          如果是: {

                    fail to started daemon...

         },

          那么你可以:adb kill-server

                                adb start-server

                                adb devices。

     注:杀掉adb进程和重启adb进程后,要重启下模拟器(真机的话,要重新连接下),如果不行,可能还要重启Android studio或重启电脑。

————————————————
版权声明:本文为CSDN博主「Jerryman_GHJ」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/Jerryman_GHJ/article/details/81631238

相关文章

网友评论

      本文标题:Execution failed for task ':app:

      本文链接:https://www.haomeiwen.com/subject/faymmctx.html