gpt4 book ai didi

android - 同步时出错 : timeout when deploying apk to device using maven

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:43:56 24 4
gpt4 key购买 nike

我正在使用 maven android 插件构建我的项目并将它们部署到设备。

使用 mvn clean install android:undeploy android:deploy 我可以成功部署到我的 2.2 ZTE blade :

[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Successfully uninstalled com.jameselsey.apps from P729J_SBM_ZTE_ZTE-BLADE
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Successfully installed D:\development\james-projects\MyApp\target\myapp-0.5-SNAPSHOT.apk to P729J_SBM_ZTE_ZTE-BLADE

但是,当我在 2.3.3 上插入我的三星 GT-I9000 时,这似乎不起作用,这是我得到的:

[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Successfully uninstalled com.jameselsey.apps from 333297C93FD200EC_samsung_GT-I9000
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
01:36:59 E/Device: Error during Sync: timeout.

什么会导致超时?

最佳答案

我在eclipse中遇到过这个问题,是因为ADB连接超时。

默认值为 5000 毫秒,将其更改为 10000 毫秒后得到修复。

关于android - 同步时出错 : timeout when deploying apk to device using maven,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10720241/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com