直接運行會報這個錯誤 http://hi.baidu.com/luckystreet/item/b3a46c6050e8de2568105b37 java
# A fatal error has been detected by the Java Runtime Environment: android
# windows
# Internal Error (classFileParser.cpp:3161), pid=4884, tid=1732 app
# Error: ShouldNotReachHere() spa
# rem
# JRE version: 6.0_22-b04 get
# Java VM: Java HotSpot(TM) Client VM (17.1-b03 mixed mode windows-x86 ) it
解決辦法以下: io
右擊有main方法的類 class
===> Run as
===> Run Configurations
===>雙擊java application
===> 單擊有main方法的類
===>選中classpath選項卡
===> remove掉Bootstrap Entries下的android.jar
===> 而後點擊advanced
===> Add Library
===>JRE System Library
===>next
===>最後finish
===>Run