Native Google Maps, cant use

I’m trying use Google Maps Native https://ionicframework.com/docs/v2/native/google-maps/, but when I execute ionic build android, I have this error:

platforms/android/gradlew: Command failed with exit code 1 Error output:
/Users/carlospersonal/Documents/appGuia/guiaApp/platforms/android/src/plugin/google/maps/PluginUtil.java:111: error: cannot access AbstractSafeParcelable

Anybody Can use Google Maps Native in Ionic 2??

Could you help me?

Hi Carlos,

Use this http://stackoverflow.com/questions/41030573/ionic-v2-google-maps-api-android-build-error-cannot-access-abstractsafeparcelab

cordova.system.library.1=com.google.android.gms:play-services-maps:+
cordova.system.library.2=com.google.android.gms:play-services-location:+

The build works to me.

But the map show gray screen and no error is printed.

If you discovered reply us.

Hi,

The maps works.

You need to sign the apk.

My system information:

Your system information:

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.5
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v6.7.0
Xcode version: Xcode 8.0 Build version 8A218a

Do this:

  1. create a folder .cordova on root path:
  2. put a file build.json in this folder
  3. CREATE A KEYSTORE:
    sudo keytool -genkey -v -keystore mystore.keystore -alias XXXXX -keyalg RSA -keysize 2048 -validity 10000
    ** the command will ask a password(passphrase), that info is very important, you will need on file build.json
  4. put the keystore in folder .cordova
  5. you need do inform the keystore with the package (config.xml) of your app on https://console.developers.google.com (in your specific project)
  6. the content of build.json:
    {
    “android”: {
    “debug”: {
    “keystore”: “./mystore.keystore”,
    “alias”: “<CREATED ON COMMAND ON ITEM 4>”,
    “password”: “<PWD DEFINED ON COMMAND ON ITEM 4>”,
    “storePassword”: “”
    }
    },
    “ios”: {
    “debug”: {
    “codeSignIdentity”: “iPhone Distribution: XXXXXXXXXXXX”,
    “provisioningProfile”: “”
    }
    }
    }
  7. ionic build android --buildConfig .cordova/build.json