2013年10月2日 星期三

google-play-services_lib/bin(missing) 錯誤問題

原本要來試 Google Play Services的功能,

但第一步居然就讓我卡關卡了幾天= =

使用Google play services 需要先到AVD安裝Google Play Services 的SDK,

然後再到eclipse內 import->android->existing android code into workspace

匯入google play services的專案,

專案路徑是在你Android SDK的資料夾/extras/google/google_play_services

把此專案import後,

重點是在你自己的專案按右鍵->Properties ->Android->Add->會看見google-play-services-lib的專案,點選他,

若您沒有看見就是前面的步驟有誤。

記得is Library不需要打勾,

照理說這樣就可以很容易的使用到Google play services的lib了,

可是在發佈時會出現

google-play-services_lib/bin(missing) 錯誤問題

最後我的解決方案是

按下我的專案右鍵->java compiler->enable project is specific打勾

把compiler compilance level: 1.6先改1.7 按下確定後

再按專案右鍵  android tools->fix project properties

然後發佈看是否能成功編譯

成功的話再將1.7再改回1.6 重新再做一次fix project properties

然後也把專案project->clean

這樣就正常了= =

感覺是eclipse的問題..

以上是我個人試成功的經驗,不一定是最正確的方式~提供參考

=============2013.10.07===============
今天又遇到此問題

以上方式還是出現一樣error

後來嘗試把jar檔通通移除重新加次一次就可以囉~





沒有留言: