简体   繁体   English

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

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

At the moment, I have Netbeans 8.0.2 installed on my machine. 目前,我的机器上安装了Netbeans 8.0.2。 Previously, I had a version of 7.X, I can't remember the exact version. 以前,我有7.X的版本,我不记得确切的版本。 The last time I remember, my Netbeans was able to communicate with the emulator without a problem, I could run and test applications on them. 我上次记得,我的Netbeans能够与仿真器通信而没有问题,我可以在它们上运行和测试应用程序。 Then I installed Android Studio to get a feel of how it works. 然后,我安装了Android Studio,以了解其工作原理。 I really didn't like it, thus uninstalled it. 我真的不喜欢它,因此将其卸载了。 Then my problems began. 然后我的问题开始了。 My Netbeans can neither communicate with the Emulator devices nor with actual physical devices when trying to test my apps. 尝试测试我的应用程序时,我的Netbeans既无法与Emulator设备通信,也无法与实际的物理设备通信。 I have tried manually killing and restarting the ADB server, re-installing old Netbeans versions, and even reinstalling the old Android SDK, but nothing is working. 我尝试手动终止并重新启动ADB服务器,重新安装旧的Netbeans版本,甚至重新安装旧的Android SDK,但是没有任何效果。 Netbeans still cannot communicate with other emulators or physical devices. Netbeans仍然无法与其他仿真器或物理设备进行通信。 When the Android emulator is running, a sample of the Netbeans log says: 当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

Yet the emulator is running. 仿真器仍在运行。 What could be the problem? 可能是什么问题呢?

Check your NetBeans 8.0.2 Plugins. 检查您的NetBeans 8.0.2插件。
Tools->Plugins 工具->插件
You may have to activate/reactivate your Git plugin. 您可能需要激活/重新激活Git插件。 Click on installed tab and make sure Git is activated. 单击已安装的选项卡,并确保已激活Git。 If not, select it and click on activate. 如果没有,请选择它并单击激活。
I had a similar problem with the Cordova project missing when I upgraded to 8.0.2. 升级到8.0.2时,我的Cordova项目缺少类似的问题。 I had to reactivate my Cordova Support plugin. 我不得不重新激活我的Cordova支持插件。

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

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