AndroidLocationPlayServiceManager 上的构建错误
Build error on AndroidLocationPlayServiceManager
我的最新版本失败了。我在构建提示中有 android.includeGPlayServices=true 。这实际上在两三天前工作正常,所以不确定是什么原因造成的。我正在使用 google cn1 库在我的应用程序中使用 google 地图。 :
/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
虽然说如果你添加 none 这些,默认情况下会添加所有内容。试试看它是否能解决您的问题。
在 codemane one 博客上阅读有关这些更改的更多信息 here。
我的最新版本失败了。我在构建提示中有 android.includeGPlayServices=true 。这实际上在两三天前工作正常,所以不确定是什么原因造成的。我正在使用 google cn1 库在我的应用程序中使用 google 地图。 :
/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
虽然说如果你添加 none 这些,默认情况下会添加所有内容。试试看它是否能解决您的问题。
在 codemane one 博客上阅读有关这些更改的更多信息 here。