我的最新版本失败了。我在构建提示中有android.includeGPlayServices = true。这实际上在两三天前就可以正常工作,因此不确定是什么原因造成的。我正在使用google cn1 lib在我的应用程序中使用google maps。 :
/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
最佳答案
这可能是由于GooglPlayServices最新分离到各个库中引起的。
您将需要其他构建提示才能使该工作正常进行。具体来说:
android.playService.maps=true
android.playService.location=true
尽管有人说如果不添加这些内容,则默认情况下将添加所有内容。尝试看看是否可以解决您的问题。
在codemane一个博客here上了解有关这些更改的更多信息。
关于java - 在AndroidLocationPlayServiceManager上生成错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35213107/