【问题标题】:Why is Netbeans not communicating with my android emulator devices?为什么 Netbeans 不与我的 android 模拟器设备通信?
【发布时间】:2015-03-17 07:21:52
【问题描述】:

目前,我的机器上安装了 Netbeans 8.0.2。以前,我有一个7.X 版本,我不记得确切的版本。我记得最后一次,我的 Netbeans 能够毫无问题地与模拟器通信,我可以在它们上运行和测试应用程序。然后我安装了 Android Studio 来感受一下它是如何工作的。我真的不喜欢它,因此将其卸载。然后我的问题开始了。在尝试测试我的应用程序时,我的 Netbeans 既不能与模拟器设备通信,也不能与实际的物理设备通信。我曾尝试手动杀死并重新启动 ADB 服务器,重新安装旧的 Netbeans 版本,甚至重新安装旧的 Android SDK,但没有任何效果。 Netbeans 仍然无法与其他仿真器或物理设备通信。当 Android 模拟器运行时,Netbeans 日志示例显示:

...//other output
INFO [org.netbeans.modules.android.core.ddm.AndroidDebugBridgeFactory]: 
W PropertyFetcher AdbCommandRejectedException getting properties for 
device emulator-5554: device offline

INFO [org.nyerel.nbandroid.logcat.LogReader]: searching for device with 
sn: emulator-5554

INFO [org.nyerel.nbandroid.logcat.LogReader]: device: emulator-5554

INFO [org.nyerel.nbandroid.logcat.LogReader]: searching for device with 
sn: emulator-5554

INFO [org.nyerel.nbandroid.logcat.LogReader]: device: emulator-5554
...//keeps repeating last two statements

但模拟器正在运行。可能是什么问题呢?

【问题讨论】:

    标签: android netbeans android-emulator adb


    【解决方案1】:

    检查您的 NetBeans 8.0.2 插件。
    工具->插件
    您可能必须激活/重新激活您的 Git 插件。 单击已安装选项卡并确保已激活 Git。如果没有,请选择它并单击激活。
    当我升级到 8.0.2 时,我遇到了类似的 Cordova 项目丢失的问题。我必须重新激活我的 Cordova 支持插件。

    【讨论】:

    • Git 插件正在运行,很好奇它如何影响模拟器和 Netbeans 之间的通信
    猜你喜欢
    • 1970-01-01
    • 2020-07-07
    • 1970-01-01
    • 2018-07-07
    • 2012-09-17
    • 2010-11-10
    • 1970-01-01
    • 2016-10-25
    • 1970-01-01
    相关资源
    最近更新 更多