-
Notifications
You must be signed in to change notification settings - Fork 917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] When app is compiled with AGP 4.1.3 ('com.android.tools.build:gradle:4.1.3'), the map is blank #2871
Comments
I have this problem. |
I also have the issue with blank map. Works when AGP 4.0.2 is used, but is broken with AGP 4.1.x and above. |
It's not related to your target Android version. It's cause by change from 4.0.x to 4.1.x of AGP (Android Gradle Plugin) Latest |
I have not tested fix #2872 but if it works please try to merge it so that we can use official release of this plugin and do not have to hack the solution ourselves in code. Without fix we are stuck to [email protected] and can not use latest [email protected] which needs Android Gradle Plugin (AGP) version 4.2.2. Thank you! |
…as upgraded AGP to 4.1.3 Original credits goes to @ebhsgit (mapsplugin#2871)
…as upgraded AGP to 4.1.3 Original credits goes to @ebhsgit (mapsplugin/cordova-plugin-googlemaps#2871)
commit 4e7b436 Author: 8bhsolutions <[email protected]> Date: Fri May 21 17:33:55 2021 +1000 fix: Blank map when starting app using cordova-android branch which has upgraded AGP to 4.1.3 Original credits goes to @ebhsgit (mapsplugin/cordova-plugin-googlemaps#2871) commit c7e60a0 Author: Mathieu Castets <[email protected]> Date: Tue Dec 21 18:40:40 2021 +0100 fix: Remove JS calls to getMessage() as this method does not exist on error object
…as upgraded AGP to 4.1.3 Original credits goes to @ebhsgit (mapsplugin/cordova-plugin-googlemaps#2871)
Squashed commit of the following: commit 66f183a Author: 8bhsolutions <[email protected]> Date: Sat Oct 23 14:25:12 2021 +1100 fix: Custom markers not working for cordova-android 10+ and add checked for https scheme Original credits goes to @ebhsgit (mapsplugin/cordova-plugin-googlemaps@514426a) commit afc72f5 Author: 8bhsolutions <[email protected]> Date: Fri May 21 17:33:55 2021 +1000 fix: Blank map when starting app using cordova-android branch which has upgraded AGP to 4.1.3 Original credits goes to @ebhsgit (mapsplugin/cordova-plugin-googlemaps#2871) commit 230040f Author: Mathieu Castets <[email protected]> Date: Tue Dec 21 18:40:40 2021 +0100 fix: Remove JS calls to getMessage() as this method does not exist on error object
Squashed commit of the following: commit 66f183afe2afad74d7b63ebfd908efc24743bfdb Author: 8bhsolutions <[email protected]> Date: Sat Oct 23 14:25:12 2021 +1100 fix: Custom markers not working for cordova-android 10+ and add checked for https scheme Original credits goes to @ebhsgit (mapsplugin@514426a) commit afc72f5d4503cd96bf79ff339bff153312c4d6ca Author: 8bhsolutions <[email protected]> Date: Fri May 21 17:33:55 2021 +1000 fix: Blank map when starting app using cordova-android branch which has upgraded AGP to 4.1.3 Original credits goes to @ebhsgit (mapsplugin#2871) commit 230040f778f3a5f46686e02e960acf00b8040ba0 Author: Mathieu Castets <[email protected]> Date: Tue Dec 21 18:40:40 2021 +0100 fix: Remove JS calls to getMessage() as this method does not exist on error object
I'm submitting a ... (check one with "x")
OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)If you use
@ionic-native/google-maps
, please tell the package.json (only@ionic-native/core
and@ionic-native/google-maps
are fine mostly)Cause
I've done some investigation and have isolated the issue to be caused by the change in cordova-android dependency of AGP from version 4.0.x to 4.1.3
Release notes for AGP
https://developer.android.com/studio/releases/gradle-plugin#4-1-0
Current behavior:
App starts with map being blank/white.
Expected behavior:
Shows the map
Screen capture or video record:
Related code, data or error log (please format your code or data):
Most the time no errors in logcat
Occasionally the following error is shown in logcat
Test project that shows the issue
https://github.com/ebhsgit/gmap-test/tree/android-9.1
You will need to edit
config.xml
to put in your Map API keySupport this plugin activity
I appreicate if you give me a beer 🍺 from here
The text was updated successfully, but these errors were encountered: