繁体   English   中英

为什么Netbeans无法与我的Android模拟器设备通信?

[英]Why is Netbeans not communicating with my android emulator devices?

目前,我的机器上安装了Netbeans 8.0.2。 以前,我有7.X的版本,我不记得确切的版本。 我上次记得,我的Netbeans能够与仿真器通信而没有问题,我可以在它们上运行和测试应用程序。 然后,我安装了Android Studio,以了解其工作原理。 我真的不喜欢它,因此将其卸载了。 然后我的问题开始了。 尝试测试我的应用程序时,我的Netbeans既无法与Emulator设备通信,也无法与实际的物理设备通信。 我尝试手动终止并重新启动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

仿真器仍在运行。 可能是什么问题呢?

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM