Closed ghost closed 10 years ago
@alexbleks I can not detect what the wrong point is. Please follow and confirm this page.
https://github.com/wf9a5m75/phonegap-googlemaps-plugin/wiki/Manual-Installation
This is normally caused by forgetting to run cordova build
after adding a platform or reinstalling the plugin, I often made this mistake when upgrading the plugin.
Ah, I see.
@alexbleks Did you solve this?
For using Xcode, run the command cordova prepare ios
before click the build button.
I will try tomorrow :) thanks alot for great support!
2014-05-16 10:00 GMT+02:00 Masashi Katsumata notifications@github.com:
@alexbleks https://github.com/alexbleks Did you solve this?
Reply to this email directly or view it on GitHubhttps://github.com/wf9a5m75/phonegap-googlemaps-plugin/issues/65#issuecomment-43306523 .
I released the plugin version 1.1.0 (old version name v1.0.12). Please uninstall the plugin, then install it again.
I did everything from scratch and I got alot further :)
[aapt] /Users/alexander/Projects/app/platforms/android/ant-build/AndroidManifest.xml:30: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
BUILD FAILED /Users/alexander/Projects/android_sdk/tools/ant/build.xml:653: The following error occurred while executing this line: /Users/alexander/Projects/android_sdk/tools/ant/build.xml:698: null returned: 1
Total time: 2 seconds Error code 1 for command: ant with args: debug,-f,/Users/alexander/Projects/app/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen Error: /Users/alexander/Projects/app/platforms/android/cordova/build: Command failed with exit code 2 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/src/superspawn.js:126:23) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:753:16) at Process.ChildProcess._handle.onexit (child_process.js:820:5)
Umm, it seems like you don't install the Google Play Services plugin. The play services plugin should be installed with my plugin. Could you show me the output of the below command?
$> cd (your project)
$> cordova plugin list
$> cordova plugin list
The result should be like this:
android.support.v4
com.google.playservices
plugin.google.maps
I think you might not have the "com.google.playservices" plugin.
If you don't have it, tell me the output of the below too.
$> which git
$> which android
$> which ant
$> cordova --version
$> node --version
Hello! :) Thanks for fast reply, here is the output:
alexandersair2:android alexander$ cordova plugin list [ 'android.support.v4', 'cc.fovea.plugins.inapppurchase', 'com.google.cordova.plugin.AdMobPlugin', 'com.google.playservices', 'com.googlemaps.ios', 'com.phonegap.plugins.PushPlugin', 'de.appplant.cordova.plugin.local-notification', 'nl.x-services.plugins.socialsharing', 'org.apache.cordova.device', 'org.apache.cordova.file', 'org.apache.cordova.geolocation', 'org.apache.cordova.inappbrowser', 'org.apache.cordova.media', 'org.apache.cordova.plugin.ActivityIndicator', 'org.apache.cordova.statusbar', 'org.transistorsoft.cordova.background-geolocation', 'plugin.google.maps' ]
alexandersair2:android alexander$ which git /usr/bin/git
alexandersair2:android alexander$ which android /Users/alexander/Projects/android_sdk/tools//android
alexandersair2:android alexander$ which ant /usr/local/bin/ant
alexandersair2:android alexander$ cordova --version 3.4.1-0.1.0
alexandersair2:android alexander$ node --version v0.10.28
Thank you for your testing. I see.
Umm, is there the version.xml
file in the platforms/android/res/values/
directory?
$> ls -l platforms/android/res/values/
total 16
-rw-rw-r-- 1 masashi staff 114 May 21 09:22 strings.xml
-rw-r--r-- 1 masashi staff 131 May 21 09:24 version.xml <!-- this file
And please confirm the version.xml file. The correct version.xml file is here: https://github.com/MobileChromeApps/google-play-services/blob/master/version.xml
(The version number should be 4323000 or 4242000)
No, I only see a strings.xml
That's it.
Ok, download the version.xml
file from here, then place it under the platforms/android/res/values/
, and try again please.
https://raw.githubusercontent.com/MobileChromeApps/google-play-services/master/version.xml
I downloaded it, but now I really got a mess here hehe:
alexandersair2:values alexander$ cordova compile android --release Running command: /Users/alexander/Projects/politikontroller/platforms/android/cordova/build --release Buildfile: /Users/alexander/Projects/politikontroller/platforms/android/build.xml
-set-mode-check:
-set-release-mode:
-release-obfuscation-check: [echo] proguard.config is ${proguard.config}
-pre-build:
-check-env: [checkenv] Android SDK Tools Revision 22.6.3 [checkenv] Installed at /Users/alexander/Projects/android_sdk
-setup: [echo] Project Name: Politikontroller [gettype] Project Type: Application
-build-setup: [getbuildtools] Using latest Build Tools: 19.0.3 [echo] Switching between debug and non debug build: Deleting previous compilation output... [delete] Deleting directory /Users/alexander/Projects/politikontroller/platforms/android/ant-build/classes [echo] Resolving Build Target for Politikontroller... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [echo] ---------- [echo] Creating output directories if needed... [mkdir] Created dir: /Users/alexander/Projects/politikontroller/platforms/android/ant-build/rsObj [mkdir] Created dir: /Users/alexander/Projects/politikontroller/platforms/android/ant-build/rsLibs [mkdir] Created dir: /Users/alexander/Projects/politikontroller/platforms/android/ant-build/classes [echo] ---------- [echo] Resolving Dependencies for Politikontroller... [dependency] Library dependencies: [dependency] [dependency] ------------------ [dependency] Ordered libraries: [dependency] [dependency] ------------------ [echo] ---------- [echo] Building Libraries with 'release'...
nodeps:
-set-mode-check:
-set-release-mode:
-release-obfuscation-check: [echo] proguard.config is ${proguard.config}
-pre-build:
-check-env: [checkenv] Android SDK Tools Revision 22.6.3 [checkenv] Installed at /Users/alexander/Projects/android_sdk
-setup: [echo] Project Name: CordovaLib [gettype] Project Type: Android Library
-build-setup: [getbuildtools] Using latest Build Tools: 19.0.3 [echo] Resolving Build Target for CordovaLib... [gettarget] Project Target: Android 4.4.2 [gettarget] API level: 19 [echo] ---------- [echo] Creating output directories if needed... [echo] ---------- [echo] Resolving Dependencies for CordovaLib... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------
-code-gen: [mergemanifest] No changes in the AndroidManifest files. [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [echo] ---------- [echo] Handling Resources... [aapt] No changed resources. R.java and Manifest.java untouched. [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile: [echo] Creating library output jar file...
-post-compile:
-obfuscate:
-dex: [echo] Library project: do not convert bytecode...
-crunch: [crunch] Crunching PNG Files in source dir: /Users/alexander/Projects/politikontroller/platforms/android/CordovaLib/res [crunch] To destination dir: /Users/alexander/Projects/politikontroller/platforms/android/CordovaLib/ant-build/res [crunch] Crunched 0 PNG files to update cache
-package-resources: [echo] Library project: do not package resources...
-package: [echo] Library project: do not package apk...
-post-package:
-release-prompt-for-password:
-release-nosign: [echo] [propertyfile] Updating property file: /Users/alexander/Projects/politikontroller/platforms/android/CordovaLib/ant-build/build.prop [propertyfile] Updating property file: /Users/alexander/Projects/politikontroller/platforms/android/CordovaLib/ant-build/build.prop [propertyfile] Updating property file: /Users/alexander/Projects/politikontroller/platforms/android/CordovaLib/ant-build/build.prop [propertyfile] Updating property file: /Users/alexander/Projects/politikontroller/platforms/android/CordovaLib/ant-build/build.prop
-release-sign:
-post-build:
release:
-code-gen: [mergemanifest] No changes in the AndroidManifest files. [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [echo] ---------- [echo] Handling Resources... [aapt] No changed resources. R.java and Manifest.java untouched. [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] Build type changed: Generating new BuildConfig class.
-pre-compile: [echo] Set jars path to: /Users/alexander/Projects/politikontroller/platforms/android/CordovaLib/ant-build/classes.jar:/Users/alexander/Projects/politikontroller/platforms/android/libs/android-support-v4.jar
-compile: [javac] Compiling 60 source files to /Users/alexander/Projects/politikontroller/platforms/android/ant-build/classes [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:15: package com.google.ads does not exist [javac] import com.google.ads.Ad; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:16: package com.google.ads does not exist [javac] import com.google.ads.AdListener; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:17: package com.google.ads does not exist [javac] import com.google.ads.AdRequest; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:18: package com.google.ads.AdRequest does not exist [javac] import com.google.ads.AdRequest.ErrorCode; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:19: package com.google.ads does not exist [javac] import com.google.ads.AdSize; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:20: package com.google.ads.doubleclick does not exist [javac] import com.google.ads.doubleclick.DfpAdView; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:21: package com.google.ads.doubleclick does not exist [javac] import com.google.ads.doubleclick.DfpInterstitialAd; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:22: package com.google.ads.mediation.admob does not exist [javac] import com.google.ads.mediation.admob.AdMobAdapterExtras; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:31: cannot find symbol [javac] symbol : class DfpAdView [javac] location: class com.google.cordova.plugin.AdMobPlugin [javac] private DfpAdView adView; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:32: cannot find symbol [javac] symbol : class DfpInterstitialAd [javac] location: class com.google.cordova.plugin.AdMobPlugin [javac] private DfpInterstitialAd intertitial; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:120: cannot find symbol [javac] symbol : class AdSize [javac] location: class com.google.cordova.plugin.AdMobPlugin [javac] final AdSize adSize, final CallbackContext callbackContext) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:429: cannot find symbol [javac] symbol : class AdSize [javac] location: class com.google.cordova.plugin.AdMobPlugin [javac] public static AdSize adSizeFromSize(String size) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:379: cannot find symbol [javac] symbol : class AdListener [javac] location: class com.google.cordova.plugin.AdMobPlugin [javac] private class BannerListener implements AdListener { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:382: cannot find symbol [javac] symbol : class Ad [javac] location: class com.google.cordova.plugin.AdMobPlugin.BannerListener [javac] public void onReceiveAd(Ad ad) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:390: cannot find symbol [javac] symbol : class Ad [javac] location: class com.google.cordova.plugin.AdMobPlugin.BannerListener [javac] public void onFailedToReceiveAd(Ad ad, ErrorCode errorCode) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:390: cannot find symbol [javac] symbol : class ErrorCode [javac] location: class com.google.cordova.plugin.AdMobPlugin.BannerListener [javac] public void onFailedToReceiveAd(Ad ad, ErrorCode errorCode) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:397: cannot find symbol [javac] symbol : class Ad [javac] location: class com.google.cordova.plugin.AdMobPlugin.BannerListener [javac] public void onPresentScreen(Ad ad) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:402: cannot find symbol [javac] symbol : class Ad [javac] location: class com.google.cordova.plugin.AdMobPlugin.BannerListener [javac] public void onDismissScreen(Ad ad) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:407: cannot find symbol [javac] symbol : class Ad [javac] location: class com.google.cordova.plugin.AdMobPlugin.BannerListener [javac] public void onLeaveApplication(Ad ad) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/plugin/gcm/CordovaGCMBroadcastReceiver.java:5: package com.google.android.gcm does not exist [javac] import com.google.android.gcm.GCMBroadcastReceiver; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/plugin/gcm/CordovaGCMBroadcastReceiver.java:6: package com.google.android.gcm does not exist [javac] import static com.google.android.gcm.GCMConstants.DEFAULT_INTENT_SERVICE_CLASS_NAME; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/plugin/gcm/CordovaGCMBroadcastReceiver.java:6: static import only from classes and interfaces [javac] import static com.google.android.gcm.GCMConstants.DEFAULT_INTENT_SERVICE_CLASS_NAME; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/plugin/gcm/CordovaGCMBroadcastReceiver.java:12: cannot find symbol [javac] symbol: class GCMBroadcastReceiver [javac] public class CordovaGCMBroadcastReceiver extends GCMBroadcastReceiver { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/plugin/gcm/GCMIntentService.java:5: package com.google.android.gcm does not exist [javac] import com.google.android.gcm.GCMBaseIntentService; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/plugin/gcm/GCMIntentService.java:22: cannot find symbol [javac] symbol: class GCMBaseIntentService [javac] public class GCMIntentService extends GCMBaseIntentService { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/plugin/gcm/PushPlugin.java:18: package com.google.android.gcm does not exist [javac] import com.google.android.gcm.*; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:48: package com.google.android.gms.common does not exist [javac] import com.google.android.gms.common.ConnectionResult; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:49: package com.google.android.gms.common does not exist [javac] import com.google.android.gms.common.GooglePlayServicesClient; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:50: package com.google.android.gms.common.GooglePlayServicesClient does not exist [javac] import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:51: package com.google.android.gms.common.GooglePlayServicesClient does not exist [javac] import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:52: package com.google.android.gms.common does not exist [javac] import com.google.android.gms.common.GooglePlayServicesUtil; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:53: package com.google.android.gms.location does not exist [javac] import com.google.android.gms.location.LocationClient; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:54: package com.google.android.gms.maps does not exist [javac] import com.google.android.gms.maps.GoogleMap; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:55: package com.google.android.gms.maps.GoogleMap does not exist [javac] import com.google.android.gms.maps.GoogleMap.InfoWindowAdapter; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:56: package com.google.android.gms.maps.GoogleMap does not exist [javac] import com.google.android.gms.maps.GoogleMap.OnCameraChangeListener; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:57: package com.google.android.gms.maps.GoogleMap does not exist [javac] import com.google.android.gms.maps.GoogleMap.OnInfoWindowClickListener; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:58: package com.google.android.gms.maps.GoogleMap does not exist [javac] import com.google.android.gms.maps.GoogleMap.OnMapClickListener; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:59: package com.google.android.gms.maps.GoogleMap does not exist [javac] import com.google.android.gms.maps.GoogleMap.OnMapLoadedCallback; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:60: package com.google.android.gms.maps.GoogleMap does not exist [javac] import com.google.android.gms.maps.GoogleMap.OnMapLongClickListener; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:61: package com.google.android.gms.maps.GoogleMap does not exist [javac] import com.google.android.gms.maps.GoogleMap.OnMarkerClickListener; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:62: package com.google.android.gms.maps.GoogleMap does not exist [javac] import com.google.android.gms.maps.GoogleMap.OnMarkerDragListener; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:63: package com.google.android.gms.maps.GoogleMap does not exist [javac] import com.google.android.gms.maps.GoogleMap.OnMyLocationButtonClickListener; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:64: package com.google.android.gms.maps does not exist [javac] import com.google.android.gms.maps.GoogleMapOptions; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:65: package com.google.android.gms.maps does not exist [javac] import com.google.android.gms.maps.MapView; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:66: package com.google.android.gms.maps does not exist [javac] import com.google.android.gms.maps.MapsInitializer; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:67: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.CameraPosition; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:68: package com.google.android.gms.maps.model.CameraPosition does not exist [javac] import com.google.android.gms.maps.model.CameraPosition.Builder; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:69: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.LatLng; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:70: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.Marker; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:72: cannot find symbol [javac] symbol: class OnMarkerClickListener [javac] public class GoogleMaps extends CordovaPlugin implements View.OnClickListener, OnMarkerClickListener, [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:73: cannot find symbol [javac] symbol: class OnInfoWindowClickListener [javac] OnInfoWindowClickListener, OnMapClickListener, OnMapLongClickListener, [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:73: cannot find symbol [javac] symbol: class OnMapClickListener [javac] OnInfoWindowClickListener, OnMapClickListener, OnMapLongClickListener, [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:73: cannot find symbol [javac] symbol: class OnMapLongClickListener [javac] OnInfoWindowClickListener, OnMapClickListener, OnMapLongClickListener, [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:74: cannot find symbol [javac] symbol: class OnCameraChangeListener [javac] OnCameraChangeListener, OnMapLoadedCallback, OnMarkerDragListener, [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:74: cannot find symbol [javac] symbol: class OnMapLoadedCallback [javac] OnCameraChangeListener, OnMapLoadedCallback, OnMarkerDragListener, [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:74: cannot find symbol [javac] symbol: class OnMarkerDragListener [javac] OnCameraChangeListener, OnMapLoadedCallback, OnMarkerDragListener, [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:75: cannot find symbol [javac] symbol: class OnMyLocationButtonClickListener [javac] OnMyLocationButtonClickListener, [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:76: cannot find symbol [javac] symbol: class ConnectionCallbacks [javac] ConnectionCallbacks, OnConnectionFailedListener, InfoWindowAdapter { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:76: cannot find symbol [javac] symbol: class OnConnectionFailedListener [javac] ConnectionCallbacks, OnConnectionFailedListener, InfoWindowAdapter { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:76: cannot find symbol [javac] symbol: class InfoWindowAdapter [javac] ConnectionCallbacks, OnConnectionFailedListener, InfoWindowAdapter { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:98: cannot find symbol [javac] symbol : class MapView [javac] location: class plugin.google.maps.GoogleMaps [javac] private MapView mapView = null; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:99: cannot find symbol [javac] symbol : class GoogleMap [javac] location: class plugin.google.maps.GoogleMaps [javac] public GoogleMap map = null; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:105: cannot find symbol [javac] symbol : class LocationClient [javac] location: class plugin.google.maps.GoogleMaps [javac] public LocationClient locationClient = null; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:740: cannot find symbol [javac] symbol : class Marker [javac] location: class plugin.google.maps.GoogleMaps [javac] private void onMarkerEvent(final String eventName, final Marker marker) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:771: cannot find symbol [javac] symbol : class Marker [javac] location: class plugin.google.maps.GoogleMaps [javac] public boolean onMarkerClick(Marker marker) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:777: cannot find symbol [javac] symbol : class Marker [javac] location: class plugin.google.maps.GoogleMaps [javac] public void onInfoWindowClick(Marker marker) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:782: cannot find symbol [javac] symbol : class Marker [javac] location: class plugin.google.maps.GoogleMaps [javac] public void onMarkerDrag(Marker marker) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:787: cannot find symbol [javac] symbol : class Marker [javac] location: class plugin.google.maps.GoogleMaps [javac] public void onMarkerDragEnd(Marker marker) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:792: cannot find symbol [javac] symbol : class Marker [javac] location: class plugin.google.maps.GoogleMaps [javac] public void onMarkerDragStart(Marker marker) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:811: cannot find symbol [javac] symbol : class LatLng [javac] location: class plugin.google.maps.GoogleMaps [javac] private void onMapEvent(final String eventName, final LatLng point) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:817: cannot find symbol [javac] symbol : class LatLng [javac] location: class plugin.google.maps.GoogleMaps [javac] public void onMapLongClick(LatLng point) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:822: cannot find symbol [javac] symbol : class LatLng [javac] location: class plugin.google.maps.GoogleMaps [javac] public void onMapClick(LatLng point) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:842: cannot find symbol [javac] symbol : class CameraPosition [javac] location: class plugin.google.maps.GoogleMaps [javac] public void onCameraChange(CameraPosition position) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:901: cannot find symbol [javac] symbol : class ConnectionResult [javac] location: class plugin.google.maps.GoogleMaps [javac] public void onConnectionFailed(ConnectionResult result) {} [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:911: cannot find symbol [javac] symbol : class Marker [javac] location: class plugin.google.maps.GoogleMaps [javac] public View getInfoContents(Marker marker) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/GoogleMaps.java:959: cannot find symbol [javac] symbol : class Marker [javac] location: class plugin.google.maps.GoogleMaps [javac] public View getInfoWindow(Marker marker) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/AsyncLicenseInfo.java:10: package com.google.android.gms.common does not exist [javac] import com.google.android.gms.common.GooglePlayServicesUtil; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:17: package com.google.android.gms.maps does not exist [javac] import com.google.android.gms.maps.GoogleMap; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:18: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.Circle; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:19: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.GroundOverlay; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:20: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.Marker; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:21: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.Polygon; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:22: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.Polyline; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:23: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.TileOverlay; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:30: cannot find symbol [javac] symbol : class GoogleMap [javac] location: class plugin.google.maps.MyPlugin [javac] public GoogleMap map = null; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:59: cannot find symbol [javac] symbol : class Circle [javac] location: class plugin.google.maps.MyPlugin [javac] protected Circle getCircle(String id) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:64: cannot find symbol [javac] symbol : class GroundOverlay [javac] location: class plugin.google.maps.MyPlugin [javac] protected GroundOverlay getGroundOverlay(String id) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:68: cannot find symbol [javac] symbol : class Marker [javac] location: class plugin.google.maps.MyPlugin [javac] protected Marker getMarker(String id) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:71: cannot find symbol [javac] symbol : class Polyline [javac] location: class plugin.google.maps.MyPlugin [javac] protected Polyline getPolyline(String id) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:74: cannot find symbol [javac] symbol : class Polygon [javac] location: class plugin.google.maps.MyPlugin [javac] protected Polygon getPolygon(String id) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/MyPlugin.java:77: cannot find symbol [javac] symbol : class TileOverlay [javac] location: class plugin.google.maps.MyPlugin [javac] protected TileOverlay getTileOverlay(String id) { [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/PluginCircle.java:8: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.Circle; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/PluginCircle.java:9: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.CircleOptions; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/PluginCircle.java:10: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.LatLng; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/PluginGeocoder.java:18: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.LatLngBounds; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/PluginGroundOverlay.java:13: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.BitmapDescriptor; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/PluginGroundOverlay.java:14: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.BitmapDescriptorFactory; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/PluginGroundOverlay.java:15: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.GroundOverlay; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/PluginGroundOverlay.java:16: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.GroundOverlayOptions; [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/plugin/google/maps/PluginGroundOverlay.java:17: package com.google.android.gms.maps.model does not exist [javac] import com.google.android.gms.maps.model.LatLng; [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 100 errors
BUILD FAILED /Users/alexander/Projects/android_sdk/tools/ant/build.xml:720: The following error occurred while executing this line: /Users/alexander/Projects/android_sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 5 seconds Error code 1 for command: ant with args: release,-f,/Users/alexander/Projects/politikontroller/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen Error: /Users/alexander/Projects/politikontroller/platforms/android/cordova/build: Command failed with exit code 2 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/src/superspawn.js:126:23) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:753:16) at Process.ChildProcess._handle.onexit (child_process.js:820:5) alexandersair2:values alexander$
It seems there is no the google-play-services.jar
under the platforms/android/libs
directory.
If no, copy from the plugin directory
$> cd (your project)
$> cp plugins/com.google.playservices/google-play-services.jar platforms/android/libs/
Or download the file from here https://github.com/MobileChromeApps/google-play-services/blob/master/google-play-services.jar?raw=true
I think I got it working, however now AdMob complains :P
[echo] Set jars path to: /Users/alexander/Projects/politikontroller/platforms/android/CordovaLib/ant-build/classes.jar:/Users/alexander/Projects/politikontroller/platforms/android/libs/gcm.jar:/Users/alexander/Projects/politikontroller/platforms/android/libs/google-play-services.jar:/Users/alexander/Projects/politikontroller/platforms/android/libs/android-support-v4.jar:/Users/alexander/Projects/politikontroller/platforms/android/libs/GoogleAdMobAdsSdk-6.4.1.jar
-compile: [javac] Compiling 60 source files to /Users/alexander/Projects/politikontroller/platforms/android/ant-build/classes [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:252: AdRequest() has private access in com.google.ads.AdRequest [javac] AdRequest request = new AdRequest(); [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:264: cannot find symbol [javac] symbol : method addTestDevice(java.lang.String) [javac] location: class com.google.ads.AdRequest [javac] request.addTestDevice(AdRequest.TEST_EMULATOR); [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:306: AdRequest() has private access in com.google.ads.AdRequest [javac] AdRequest request = new AdRequest(); [javac] ^ [javac] /Users/alexander/Projects/politikontroller/platforms/android/src/com/google/cordova/plugin/AdMobPlugin.java:318: cannot find symbol [javac] symbol : method addTestDevice(java.lang.String) [javac] location: class com.google.ads.AdRequest [javac] request.addTestDevice(AdRequest.TEST_EMULATOR); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 4 errors
BUILD FAILED /Users/alexander/Projects/android_sdk/tools/ant/build.xml:720: The following error occurred while executing this line: /Users/alexander/Projects/android_sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 4 seconds Error code 1 for command: ant with args: debug,-f,/Users/alexander/Projects/politikontroller/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen Error: /Users/alexander/Projects/politikontroller/platforms/android/cordova/build: Command failed with exit code 2 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/src/superspawn.js:126:23) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:753:16) at Process.ChildProcess._handle.onexit (child_process.js:820:5)
I tried to copy over the admob.jar to libs folder,, any clue? could it be some error from googlemaps?
Okay, the google-play-services.jar
version 16.0.0 does not contain the admob class.
Because the google-play-services.jar
is part of the Google Play Services library. Not all of them.
They generates AAR file, not JAR file anymore.
Anyway, there are two solutions.
1) The easy solution is downgrade the google-play-services.jar
and the version.xml
.
The google-play-services.jar
version 15.0.1
https://github.com/MobileChromeApps/google-play-services/blob/45c1ccb51686fa417613857e138ef800df174fc0/google-play-services.jar?raw=true
And change the number of the version.xml
with 4242000
https://github.com/MobileChromeApps/google-play-services/blob/45c1ccb51686fa417613857e138ef800df174fc0/version.xml
2) Perfect answer is to link with the Google Play Services library.
$> cd $(your_android_sdk_path)/extras/google/google_play_services/libproject/google-play-services_lib/
$> android update lib-project -p .
//Go back to your project directory
$> cd MyProjectDir/platforms/android
$> android update -p . -l (relative_path_to_google_play_services)/extras/google/google_play_services/libproject/google-play-services_lib/
$> cd ../../
Thank you so very much! It compiled now :) Where do I donate?
Congratulation!!
And thank you for your donation. I really appreciate. The donation button is located at the wiki page (right side of the page) https://github.com/wf9a5m75/phonegap-googlemaps-plugin/wiki
This is a very good answer. Can this be added in the Wiki?
Sure!
Just 1 more question regarding the iOS side:
But all the files is there right?
alexandersair2:Plugins alexander$ pwd /Users/alexander/Projects/politikontrollerBACKUP/platforms/ios/Politikontroller/Plugins alexandersair2:Plugins alexander$ cd plugin.google.maps/ alexandersair2:plugin.google.maps alexander$ ls -l total 536 -rw-r--r-- 1 alexander staff 709 May 21 23:35 Circle.h -rw-r--r-- 1 alexander staff 5951 May 21 23:35 Circle.m -rw-r--r-- 1 alexander staff 318 May 21 23:35 External.h -rw-r--r-- 1 alexander staff 1399 May 21 23:35 External.m -rw-r--r-- 1 alexander staff 566 May 21 23:35 Geocoder.h -rw-r--r-- 1 alexander staff 10110 May 21 23:35 Geocoder.m -rw-r--r--@ 1 alexander staff 951 May 21 23:42 GoogleMaps.h -rw-r--r-- 1 alexander staff 17163 May 21 23:35 GoogleMaps.m -rw-r--r-- 1 alexander staff 1207 May 21 23:35 GoogleMapsViewController.h -rw-r--r-- 1 alexander staff 17122 May 21 23:35 GoogleMapsViewController.m -rw-r--r-- 1 alexander staff 401 May 21 23:35 GroundOverlay.h -rw-r--r-- 1 alexander staff 2961 May 21 23:35 GroundOverlay.m -rw-r--r-- 1 alexander staff 558 May 21 23:35 KmlOverlay.h -rw-r--r-- 1 alexander staff 21523 May 21 23:35 KmlOverlay.m -rw-r--r-- 1 alexander staff 1038 May 21 23:35 Map.h -rw-r--r-- 1 alexander staff 15280 May 21 23:35 Map.m -rw-r--r-- 1 alexander staff 1244 May 21 23:35 Marker.h -rw-r--r-- 1 alexander staff 16197 May 21 23:35 Marker.m -rw-r--r-- 1 alexander staff 235 May 21 23:35 MyPlgunProtocol.h -rw-r--r-- 1 alexander staff 1482 May 21 23:35 NSData+Base64.h -rw-r--r-- 1 alexander staff 9156 May 21 23:35 NSData+Base64.m -rw-r--r-- 1 alexander staff 1494 May 21 23:35 NSData+Base64.podspec -rw-r--r-- 1 alexander staff 771 May 21 23:35 PluginUtil.h -rw-r--r-- 1 alexander staff 3413 May 21 23:35 PluginUtil.m -rw-r--r-- 1 alexander staff 713 May 21 23:35 Polygon.h -rw-r--r-- 1 alexander staff 6331 May 21 23:35 Polygon.m -rw-r--r-- 1 alexander staff 654 May 21 23:35 Polyline.h -rw-r--r-- 1 alexander staff 5727 May 21 23:35 Polyline.m -rw-r--r-- 1 alexander staff 9156 May 21 23:35 TBXML.h -rw-r--r-- 1 alexander staff 31839 May 21 23:35 TBXML.m -rw-r--r-- 1 alexander staff 478 May 21 23:35 TileOverlay.h -rw-r--r-- 1 alexander staff 3333 May 21 23:35 TileOverlay.m alexandersair2:plugin.google.maps alexander$
Umm, it seems the GoogleMaps.framework
does not link your project.
Could you check the GoogleMaps.framework
is in the Frameworks
directory of the tree?
Nope it isnt, where is it located? :)
EDIT: I figured it out, thanks :)
Ok I got it all up and running but no map is shown when I throw:
var map = plugin.google.maps.Map.getMap();
map.addEventListener(plugin.google.maps.event.MAP_READY, function(map) {
// The map is initialized, then show a map dialog
map.showDialog();
});
I have also included googlemaps-cdv-plugin.js
Is there any error? Did you get the MAP_READY event?
var map = plugin.google.maps.Map.getMap();
map.addEventListener(plugin.google.maps.event.MAP_READY, function(map) {
alert("OK");
map.showDialog();
});
Yes I do, it says OK
Does the dialog open?
If the dialog open and the map is gray, it would be mismatch the package name with your API key.
No nothing happens, no dialog or anything.
Could you give me your project directory, or share your repository with me? I can not detect what wrong is.
My e-mail address is wf9a5m75 at gmail.com
Ok, but one thing first. In simulator I get the "blank" screen as you described, but not on device. any clues?
This causes the API key is not correct usually.
Doh! My fault :P
Congrats!