2016-02-04 117 views
2

我的最新版本失敗。在構建提示中我有android.includeGPlayServices = true。這實際上兩三天前工作正常,所以不知道是什麼導致它。我在使用google cn1 lib的應用中使用谷歌地圖。 :AndroidLocationPlayServiceManager生成錯誤

/tmp/build6792756217656774137xxx/Marketta/src/main/java/com/andira/mobile/MarkettaStub.java:51: error: cannot find symbol 
com.codename1.impl.android.AndroidNativeUtil.addLifecycleListener(com.codename1.location.AndroidLocationPlayServiceManager.getInstance()); 
                         ^
    symbol: class AndroidLocationPlayServiceManager 
    location: package com.codename1.location 
/tmp/build6792756217656774137xxx/Marketta/src/main/java/com/andira/mobile/MarkettaStub.java:52: error: cannot find symbol 
com.codename1.social.GoogleImpl.init(); 
        ^
    symbol: class GoogleImpl 
    location: package com.codename1.social 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
2 errors 

回答

2

這可能是由GooglPlayServices成各個庫的最新分離引起的。

您需要額外的構建提示才能使其工作。特別是這些:

android.playService.maps=true 
android.playService.location=true 

雖然有人說,如果你沒有添加這些,一切都將被默認添加。試試看看它是否解決了你的問題。

閱讀更多關於codemane one博客here的更改。

+0

啊..謝謝。這些固定它! – davidwaf