2016-02-04 110 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