Cordova plugin Google-Maps 2.6.1 compile error (with AppFlow)

Hello All,

Just ran into this problem today:

Task :app:compileDebugJavaWithJavac FAILED me/app/platforms/android/app/src/main/java/plugin/google/maps/PluginPolygon.java:143: error: incompatible types: int cannot be converted to boolean

I switched from the beta (https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps) to the latest Stable release (2.6.x). However, when I switch back it still has an issue. Anyone else seen this lately?

Thanks for any input,

-L


package.json:

{
“name”: “ss-app-1”,
“version”: “0.0.1”,
“author”: “Ionic Framework”,
“homepage”: “https://ionicframework.com/”,
“scripts”: {
“ng”: “ng”,
“start”: “ng serve”,
“build”: “ng build”,
“test”: “ng test”,
“lint”: “ng lint”,
“e2e”: “ng e2e”
},
“private”: true,
“dependencies”: {
@angular/common”: “^7.2.2”,
@angular/core”: “^7.2.2”,
@angular/forms”: “^7.2.2”,
@angular/http”: “^7.2.2”,
@angular/platform-browser”: “^7.2.2”,
@angular/platform-browser-dynamic”: “^7.2.2”,
@angular/router”: “^7.2.2”,
@auth0/angular-jwt”: “^2.1.0”,
@ionic-native/core”: “^5.5.0”,
@ionic-native/date-picker”: “^5.2.0”,
@ionic-native/geolocation”: “^5.4.0”,
@ionic-native/google-maps”: “^5.0.0-beta.27”,
@ionic-native/splash-screen”: “^5.0.0”,
@ionic-native/status-bar”: “^5.0.0”,
@ionic/angular”: “^4.0.0”,
@ionic/storage”: “^2.2.0”,
“ajv”: “^6.9.2”,
“cordova-android”: “8.0.0”,
“cordova-browser”: “5.0.4”,
“cordova-plugin-datepicker”: “^0.9.3”,
“cordova-plugin-device”: “^2.0.2”,
“cordova-plugin-geolocation”: “git+https://github.com/apache/cordova-plugin-geolocation.git”,
“cordova-plugin-googlemaps”: “2.6.1”,
“cordova-plugin-ionic-keyboard”: “^2.1.3”,
“cordova-plugin-ionic-webview”: “^3.1.2”,
“cordova-plugin-splashscreen”: “^5.0.2”,
“cordova-plugin-statusbar”: “^2.4.2”,
“cordova-plugin-whitelist”: “^1.3.3”,
“cordova-sqlite-storage”: “^3.1.0”,
“core-js”: “^2.5.4”,
“moment”: “^2.24.0”,
“rxjs”: “~6.3.3”,
“zone.js”: “~0.8.29”
},
“devDependencies”: {
@angular-devkit/architect”: “~0.12.3”,
@angular-devkit/build-angular”: “~0.12.3”,
@angular-devkit/core”: “~7.2.3”,
@angular-devkit/schematics”: “~7.2.3”,
@angular/cli”: “~7.2.3”,
@angular/compiler”: “~7.2.2”,
@angular/compiler-cli”: “~7.2.2”,
@angular/language-service”: “~7.2.2”,
@ionic/angular-toolkit”: “^1.5.1”,
@types/jasmine”: “~2.8.8”,
@types/jasminewd2”: “~2.0.3”,
@types/node”: “~10.12.0”,
“codelyzer”: “~4.5.0”,
“jasmine-core”: “~2.99.1”,
“jasmine-spec-reporter”: “~4.2.1”,
“karma”: “~3.1.4”,
“karma-chrome-launcher”: “~2.2.0”,
“karma-coverage-istanbul-reporter”: “~2.0.1”,
“karma-jasmine”: “~1.1.2”,
“karma-jasmine-html-reporter”: “^0.2.2”,
“protractor”: “~5.4.0”,
“ts-node”: “~8.0.0”,
“tslint”: “~5.12.0”,
“typescript”: “~3.1.6”
},
“description”: “StaffSetter Associate App”,
“cordova”: {
“plugins”: {
“cordova-plugin-whitelist”: {},
“cordova-plugin-statusbar”: {},
“cordova-plugin-device”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-ionic-webview”: {
“ANDROID_SUPPORT_ANNOTATIONS_VERSION”: “28.+”
},
“cordova-plugin-ionic-keyboard”: {},
“cordova-plugin-datepicker”: {},
“cordova-sqlite-storage”: {},
“cordova-plugin-geolocation”: {
“GEOLOCATION_USAGE_DESCRIPTION”: “Set locations for associates to clock in and clock out.”
},
“cordova-plugin-googlemaps”: {
“API_KEY_FOR_ANDROID”: “”,
“API_KEY_FOR_IOS”: “”,
“PLAY_SERVICES_VERSION”: “15.0.1”,
“ANDROID_SUPPORT_V4_VERSION”: “27.+”
}
},
“platforms”: [
“browser”,
“android”
]
}
}

Got it compiling again…

Changed

to “@ionic-native/google-maps”: “^5.5.0”,

and changed cordova-google-maps from 2.6.1 back to beta

“cordova-plugin-googlemaps”: “git+https://github.com/mapsplugin/cordova-plugin-googlemaps.git#multiple_maps”,

o_O

-L

v2.6.1 has a bug, please use v2.6.2

1 Like

Thanks for your help,

https://github.com/mapsplugin/cordova-plugin-googlemaps#buy-us-a-beer

12-pack coming your way…

1 Like