andengine配置出現java.lang.NoClassDefFoundError: org.andengine.AndEngine

來源:互聯網
上載者:User

想配置andengine 但是一直出錯查了好多,原來是


There are only three reasons you will ever get this error:

  1. The class genuinely doesn't exist. If you are using code from an official example and getting this, make sure you have the latest build of the library
  2. You have not added the jar to your build path. To fix this, right click on the jar in Eclipse, and do Build Path ► Add to Build Path.
  3. Your jar is not in the /libs folder.
    This happens when you have added the jar to the build path, but newer versions of ADT need it to be in /libs.
    Put it there and re-add it to the build path.

Mostly, such errors occur because newer versions of the ADT require all external jars to be in the libsfolder.

一般是進階的Adt需要把參考的jar包放到libs檔案夾下並參考才行。。。。記下來。

2down
vote

There are only three reasons you will ever get this error:

  1. The class genuinely doesn't exist. If you are using code from an official example and getting this, make sure you have the latest build of the library
  2. You have not added the jar to your build path. To fix this, right click on the jar in Eclipse, and do Build Path ► Add to Build Path.
  3. Your jar is not in the /libs folder.
    This happens when you have added the jar to the build path, but newer versions of ADT need it to be in /libs.
    Put it there and re-add it to the build path.

Mostly, such errors occur because newer versions of the ADT require all external jars to be in the libsfolder.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.