最近出現老代碼不能運行的問題
Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
這個原因,其實是因爲當前開發環境已經升級到4.4引起的
只要修改.classpath文件即可
找到工程目錄.classpath文件,用記事本打開,找到
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
刪除它。