递归火山软件开发平台

标题: 怎办无法调试 [打印本页]

作者: yh2393105053    时间: 2017-8-6 10:42
标题: 怎办无法调试
--- 开始调试当前项目"step1"编译后的结果文件"C:\Users\Administrator\Desktop\_int\step1\debug\linker\step1.apk"
错误:
    被执行工具软件"adb.exe"返回错误码1,具体信息为: "error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 (10048)
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.
    could not read ok from ADB Server
    * failed to start daemon *
    error: cannot connect to daemon
    "
项目"step1"启动调试失败或者被用户中止



作者: 雾里看花    时间: 2017-8-6 10:58
简单来说就没连接设备
作者: yh2393105053    时间: 2017-8-6 10:59
雾里看花 发表于 2017-8-6 10:58
简单来说就没连接设备

我连了难道是手机有问题,小米手机
作者: 雾里看花    时间: 2017-8-6 11:05
yh2393105053 发表于 2017-8-6 10:59
我连了难道是手机有问题,小米手机

首先,手机用USB连接到电脑之后,不一定就能够被adb连接,
最简单的办法。
打开cmd 运行 sdk目录\platform-tools\adb devices

查看cmd输出,如果现实 有设备的话,那才是与adb连接。。
连接设备后输出类似这样的:我是 局域网下连接的, 所以我这里现实的是IP地址,
(, 下载次数: 70)


用数据线那就应该是类似这样:
(, 下载次数: 64)


至于连接不上手机,一般有几种情况

手机USB调试开关,没装驱动,数据线有问题,adb端口被占用,





欢迎光临 递归火山软件开发平台 (https://bbs.voldp.com/) Powered by Discuz! X3.4