weexplus真机调试

8 篇文章 0 订阅
8 篇文章 1 订阅

一、连接真机


C:\Users\Lenovo>adb devices
List of devices attached
C9K7N15722004375        device

确定连接无误,否则执行weexplus run android会有如下提示

D:\YLKJPro\portal-app>weexplus run android
 => weexplus run android
[weexplus] · img 同步!
[weexplus] · font 同步!
[weexplus] · file 同步!
[weexplus] · 同步完毕!
adb server version (31) doesn't match this client (41); killing...
could not read ok from ADB Server
* failed to start daemon
adb.exe: failed to check server version: cannot connect to daemon
adb devices failed, please make sure you have adb in your PATH.
See http://stackoverflow.com/questions/27301960/errorunable-to-locate-adb-within-sdk-in-android-studio
(node:2288) UnhandledPromiseRejectionWarning: undefined
(node:2288) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:2288) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

处理方法点击这里: adb server version (31) doesn’t match this client (41); killing…

如果提示* daemon not running; starting now at tcp:5037 如下图
在这里插入图片描述
参考https://blog.csdn.net/qq_34817440/article/details/100060231

二、运行weexplus run android

一切ok后就可以直接,输入weexplus run android 联机测试了

D:\YLKJPro\portal-app>weexplus run android
 => weexplus run android
[weexplus] · img 同步!
[weexplus] · font 同步!
[weexplus] · file 同步!
[weexplus] · 同步完毕!
Starting a Gradle Daemon (subsequent builds will be faster)
null
ARMEABI_Size: 1263300
ARMEABIV7_Size:0
X86_Size:0
:app:checkDebugClasspath
Download https://jcenter.bintray.com/com/tencent/mm/opensdk/wechat-sdk-android-with-mta/maven-metadata.xml
Download https://jcenter.bintray.com/com/tencent/mm/opensdk/wechat-sdk-android-with-mta/5.4.0/wechat-sdk-android-with-mta-5.4.0.pom
Download https://jcenter.bintray.com/com/tencent/mm/opensdk/wechat-sdk-android-with-mta/5.4.0/wechat-sdk-android-with-mta-5.4.0.jar
:app:preBuild UP-TO-DATE
:farwolf:preBuild UP-TO-DATE
......省略..........
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 5m 32s
165 actionable tasks: 159 executed, 6 up-to-date
Performing Push Install
app-debug.apk: 1 file pushed. 8.1 MB/s (67406643 bytes in 7.965s)
        pkg: /data/local/tmp/app-debug.apk
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
Starting: Intent { cmp=com.ylkj.portal/com.farwolf.weex.activity.SplashActivity_ }
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

奔跑的痕迹

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值