I am using Google Map in my Android app, was working properly, now after upgrading
androidx.preference:preference-ktx from 1.1.0 to 1.2.0,
Google Maps stopped displaying map tiles, but everything else is working, tap on map works, ...
I am using Google Map in my Android app, was working properly, now after upgrading
androidx.preference:preference-ktx from 1.1.0 to 1.2.0,
Google Maps stopped displaying map tiles, but everything else is working, tap on map works, ...
On
In 1.2.0, it added ktx dependencies. It is already posted in Google's issue tracker, but seems Google would not fix it.
https://issuetracker.google.com/issues/238425626
You can have two ways to resolve the issue.
build.gradle > dependencies
implementation 'androidx.preference:preference:1.1.1'
build.gradle > dependencies
implementation('androidx.preference:preference:1.2.0') {
exclude group: 'androidx.lifecycle', module:'lifecycle-viewmodel'
exclude group: 'androidx.lifecycle', module:'lifecycle-viewmodel-ktx'
}
Hi did you check the dependencies
androidx.preference:preference-ktx:1.2.0brought? It is possible that some transitive dependency ofandroidx.preference:preference-ktx:1.2.0may have caused the update to the same transitive dependency of the Google map library. See Gradle dependency resolution for more infoAlso you can print the dependencies tree using the command
./gradlew app:dependencieswhereappis the name of the application Gradle project. See SO post for the sameTo fix the issue you have to manually resolve the dependency using below Gradle code
Details bout dependency resolution at link