Status Update
Comments
ca...@google.com <ca...@google.com>
ca...@google.com <ca...@google.com> #2
i am using these dependencies for the map
// Maps SDK for Android KTX Library implementation 'com.google.maps.android:maps-ktx:3.0.0'
// Maps SDK for Android Utility Library KTX Library
implementation 'com.google.maps.android:maps-utils-ktx:3.0.0'
implementation 'com.google.android.gms:play-services-base:18.5.0' implementation 'com.google.android.gms:play-services-basement:18.5.0' implementation 'com.google.android.gms:play-services-maps:19.0.0'
and also getting some map sdk error as well dab File created: google_maps_sdk_crash dab File created: _google_maps_sdk_crash_count_1 dab Couldn't create marker: google_maps_sdk_crash dab File created: _google_maps_sdk_crash_count_2 dab Marker deleted: _google_maps_sdk_crash_count_1
ga...@gmail.com <ga...@gmail.com> #3
Thank you for posting.
We are currently looking into this and will get back to you as soon as we have an update.
ga...@gmail.com <ga...@gmail.com> #4
Thank you for waiting.
We'll need some more details to troubleshoot this issue - please provide the following, in particular steps to reproduce the issue:
-
Put together a simplified reproduction case (
http://sscce.org/ ) and add it to a git hosting provider (e.g. github, bitbucket, etc)? The easiest way to do this might be to fork the Google Maps Android API Samples Repository and modify one of the existing demo activities:https://github.com/googlemaps/android-samples -
List steps to reproduce the problem
- Maps SDK client library version (used to build your app):
- Maps renderer (Latest or Legacy):
- Devices you have verified this issue on:
- Google Play Services version on the device:
- Android version:
- Manufacturer and model:
- Was this working correctly on a previous version of Google Play Services? (If yes, which client library and SDK version?)
-
Attach the following:
- screenshots
- sample code
- an APK if possible.
-
Complete stacktrace when the issue occurs
ga...@gmail.com <ga...@gmail.com> #5
ga...@gmail.com <ga...@gmail.com> #6
what happening is in normal scenario we are not getting any error, map is working fine even how much time we open this screen. But when we open this activity through deep link then we are getting this error, and in deep link also not getting in first time, we are getting when we continuously open 4-5 time this map screen then we getting this error.
we added map in this apk on 3 activities in hotel module, first when we search hotel and getting list of hotels there is button Mapview and when we click on this button we are showing map markers of these all hotels.
second when we open detail page of hotel from listing page there is a view map button, when we click on this button then we are showing map marker of that hotel.
so when we come in this hotel screen through the deep link after 4-5 times then we getting this error and crash.
below i have also attached my source code of the map where we bind the map marker:-
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding = ActivityHotelMapsBinding.inflate(layoutInflater)
setContentView(binding.root)
latitude = intent.getDoubleExtra("latitude", 0.0)
longitude = intent.getDoubleExtra("longitude", 0.0)
hotelName = intent.getStringExtra("hotelName") ?: ""
val mapFragment = supportFragmentManager
.findFragmentById(R.id.hotelDetailMap) as SupportMapFragment
mapFragment.getMapAsync(this)
if (isNetworkAvailable()) {
loadMap()
} else {
}
}
private fun isNetworkAvailable(): Boolean {
val connectivityManager =
getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
val network = connectivityManager.activeNetwork
return network != null
}
private fun loadMap() {
val mapFragment = supportFragmentManager
.findFragmentById(R.id.hotelDetailMap) as SupportMapFragment
mapFragment.getMapAsync(this)
}
override fun onMapReady(googleMap: GoogleMap) {
mMap = googleMap
mMap.uiSettings.isZoomControlsEnabled = true
mMap.uiSettings.isZoomGesturesEnabled = true
mMap.uiSettings.setAllGesturesEnabled(true)
val location = LatLng(latitude, longitude)
mMap.addMarker(MarkerOptions().position(location).title(hotelName))
val cameraPosition = CameraPosition.Builder()
.target(location)
.zoom(15.5f)
.bearing(360f)
.tilt(50f)
.build()
mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition))
}
}
use this deep link
Description
#IMPORTANT: If your production system or service is down file a Severity 1 support case at console.cloud.google.com/google/maps-apis/support
===========================================================================================
#REMINDER: Please do not disclose any possible PII such as: email address, IP, contact number, any part of name, project numbers and billing accounts as these information may violate security and privacy. Comments or attachments that include PII will be removed and restricted from public viewing.
Furthermore, please refrain from replying to a comment as this will make your email address visible. Instead, you may use the Issue Tracker’s comment feature for your replies.
It is OK to share your API Project ID, but not API keys or client ID credentials.
To learn more about personal data, visithttps://en.wikipedia.org/wiki/Personal_data
===========================================================================================
Please put together a simplified reproduction case, and put it up as a project on your choice of git hosting providers (e.g. github, bitbucket, etc). The easiest way to do this might be to fork the Google Maps Android API Samples Repository and modify one of the existing demo activities:https://github.com/googlemaps/android-samples
What steps will reproduce the problem?
Also add the following details:
Also attach screenshots, sample code and optionally an APK if possible.
If the problem exhibits itself in a released version of your app on the Play Store, optionally provide a link to the app, and explain how to reproduce the issue in the app.
Process: com.easemytrip.android, PID: 2115 android.net.ConnectivityManager$TooManyRequestsException at android.net.ConnectivityManager.convertServiceException(ConnectivityManager.java:4447) at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4723) at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:4846) at android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:5228) at android.net.ConnectivityManager.registerNetworkCallback(ConnectivityManager.java:5198) at m.fbn.c(:com.google.android.gms.policy_maps_core_dynamite@244625203@244625201025.696311601.696311601:29) at com.google.maps.api.android.lib6.impl.m.b(:com.google.android.gms.policy_maps_core_dynamite@244625203@244625201025.696311601.696311601:29) at com.google.maps.api.android.lib6.impl.cg.ba(:com.google.android.gms.policy_maps_core_dynamite@244625203@244625201025.696311601.696311601:3) at com.google.maps.api.android.lib6.impl.cg.E(:com.google.android.gms.policy_maps_core_dynamite@244625203@244625201025.696311601.696311601:32) at com.google.maps.api.android.lib6.impl.dn.m(:com.google.android.gms.policy_maps_core_dynamite@244625203@244625201025.696311601.696311601:21) at com.google.android.gms.maps.internal.p.bt(:com.google.android.gms.policy_maps_core_dynamite@244625203@244625201025.696311601.696311601:25) at m.awy.onTransact(:com.google.android.gms.policy_maps_core_dynamite@244625203@244625201025.696311601.696311601:21) at android.os.Binder.transact(Binder.java:1100) at com.google.android.gms.internal.maps.zza.zzc(SourceFile:8) at com.google.android.gms.maps.internal.zzk.onStart(SourceFile:7) at com.google.android.gms.maps.zzav.onStart(SourceFile:3) at com.google.android.gms.dynamic.zaf.zab(Unknown Source:6) at com.google.android.gms.dynamic.DeferredLifecycleHelper.zaf(SourceFile:5) at com.google.android.gms.dynamic.DeferredLifecycleHelper.onStart(Unknown Source:6) at com.google.android.gms.maps.SupportMapFragment.onStart(SourceFile:6) at androidx.fragment.app.Fragment.performStart(SourceFile:18) at androidx.fragment.app.FragmentStateManager.u(SourceFile:25) at androidx.fragment.app.FragmentStateManager.m(SourceFile:65) at androidx.fragment.app.FragmentStore.t(SourceFile:31) at androidx.fragment.app.FragmentManager.Z0(SourceFile:28) at androidx.fragment.app.FragmentManager.R(SourceFile:10) at androidx.fragment.app.FragmentManager.Q(SourceFile:12) at androidx.fragment.app.FragmentController.i(Unknown Source:4) at androidx.fragment.app.FragmentActivity.onStart(SourceFile:38) at androidx.appcompat.app.AppCompatActivity.onStart(SourceFile:1) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1455) at android.app.Activity.performStart(Activity.java:8315) at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4136) at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221) at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2443) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8751) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)