2014-10-29 75 views
0

我正在處理有關ActionBarSherlock的問題,我該如何解決它?在我的google-play-services_lib中,我有我的latlng.class,但是在我的錯誤描述中,它無法定義latlng.class,請幫助我。找不到com.google.android.gms.maps.model.Latlng的類文件

這是我的2個錯誤:

  • 類型com.google.android.gms.maps.model.Latlng不能得到解決。它是從所需的.class文件中間接引用的
  • 由於其構建路徑不完整,因此未構建該項目。無法找到com.google.android.gms.maps.model.Latlng的類文件。修復構建路徑,然後嘗試建立這個項目

在我的控制檯選項卡:

[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] All versions of the libraries must be the same at this time. 
[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] Versions found are: 

[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] Path: C:\Users\joma\Desktop\workspace\GoogleMapsV2WithActionBarSherlock\libs\android-support-v7-gridlayout.jar 
[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] Length: 38334 
[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] SHA-1: bbd8a6ac0de84f30a15f1f6b11f61e8387da3db0 

[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] Path: C:\Users\joma\Desktop\workspace\gridlayout_v7-master\libs\android-support-v7-gridlayout.jar 

[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] Length: 38334 

[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] SHA-1: 87d4ee6826a41fd3d2680d4f9ee63334455265a6 
[2014-10-29 20:46:33 - GoogleMapsV2WithActionBarSherlock] Jar mismatch! Fix your dependencies 

我試圖再次構建路徑,但什麼都沒有發生,我想也再次下載谷歌 - 播放 - service_lib和導入但沒有發生錯誤

回答

0

您正在使用2個不同的支持庫刪除其中的一個,並設置刪除到未刪除庫的引用。

0

在你的問題,你所提到的。所以問題的錯誤是你沒有正確所指向的庫

首先右鍵單擊您的項目,然後單擊生成路徑 - >配置構建路徑 - >在的屬性項目選擇Android(然後在右側可以列出名稱,以便點擊Android)。

檢查圖書館穀歌播放服務是否被添加.....檢查是否有綠色記號 如果你沒有看到綠色的勾號,這意味着你添加lib的錯誤。

還要檢查是否導入的lib到您的Workscape公司: -

第1步:-Import - >項目 - > Android的 - >將現有Android代碼到工作區,檢查複製到工作區,並瀏覽到您的Android SDK中文件夾位於:< Android SDK中文件夾> /演員/谷歌/ google_play_services/libproject /谷歌播放-services_lib

步驟2:-Click完成