2014-11-05 66 views
0

我從https://github.com/googlemaps/android-maps-utils 下載庫和遵循的步驟https://developers.google.com/maps/documentation/android/utility/setup 但我得到NoClassDefFoundError的:com.google.maps.android.utils.demo.CustomMarkerClusteringDemoActivity

java.lang.NoClassDefFoundError: com.google.maps.android.utils.demo.CustomMarkerClusteringDemoActivity 

我已經添加了庫項目的MainActivity,如documentation中所述

Google文檔有什麼問題?

回答

0

嘗試用這種 轉到Properties - >Java Build Path - >Order and Export

您應該看到所選srcgen,以及訂單必須先src,然後gen

Android Private Libraries必須檢查!

enter image description here

0

我掙扎着同樣的問題。在Java Build Path/Libraryies下刪除Android Dependencies爲我解決它。