Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> 關於Android編程 >> android eclipse 開發中遇到 Cannot connect to VM

android eclipse 開發中遇到 Cannot connect to VM

編輯:關於Android編程

'Launching ????' has encountered a problem. Cannot connecto to VM

Socket operation on nonsocket: configureBlocking




It caused by having a "main" method.
Delete/rename the method and then go to the properties of the project.
Click "Run/Debug Settings" and delete the class (it may make eclipse to run the class after being compiled).


I had to change the Test Launcher being used.

Run->Debug Configurations->JUnit->*JUnit Test Class*Choose Select Other in the bottom left of the settings dialog, next to the menu list.

  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved