Giter Club home page Giter Club logo

Comments (6)

Mentix avatar Mentix commented on August 16, 2024 5

Work for me with this config:

implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'

implementation('io.nlopez.smartlocation:library:3.3.3') {
transitive = false
}

And call SmartLocation instance with:

SmartLocation.with(this).location(LocationGooglePlayServicesProvider())

The problem was resolved when change the location to LocationGooglePlayServiceProvider.
Regards.

from smart-location-lib.

pavelpoley avatar pavelpoley commented on August 16, 2024 1

It happening when using the gms services 15 or 16 version
Use 'com.google.android.gms:play-services-maps:11.4.2'

Are you serious?

from smart-location-lib.

LeonardoCurvelo avatar LeonardoCurvelo commented on August 16, 2024

Still happening in 3.3.0

from smart-location-lib.

 avatar commented on August 16, 2024

It happening when using the gms services 15 or 16 version
Use 'com.google.android.gms:play-services-maps:11.4.2'

from smart-location-lib.

Mentix avatar Mentix commented on August 16, 2024

after adding

classpath 'com.google.gms:google-services:4.0.1'

to the project i get this error

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/api/Api$zzf;
        at com.google.android.gms.location.LocationServices.<clinit>(Unknown Source)
        at io.nlopez.smartlocation.location.providers.LocationGooglePlayServicesProvider.init(LocationGooglePlayServicesProvider.java:79)
        at io.nlopez.smartlocation.location.providers.LocationGooglePlayServicesWithFallbackProvider.init(LocationGooglePlayServicesWithFallbackProvider.java:45)
        at io.nlopez.smartlocation.SmartLocation$LocationControl.<init>(SmartLocation.java:173)
        at io.nlopez.smartlocation.SmartLocation.location(SmartLocation.java:67)
        at io.nlopez.smartlocation.SmartLocation.location(SmartLocation.java:59)

Hello, You need use google maps? or another google service..

from smart-location-lib.

i-khan avatar i-khan commented on August 16, 2024

Work for me with this config:

implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'

implementation('io.nlopez.smartlocation:library:3.3.3') {
transitive = false
}

And call SmartLocation instance with:

SmartLocation.with(this).location(LocationGooglePlayServicesProvider())

The problem was resolved when change the location to LocationGooglePlayServiceProvider.
Regards.

this solved my issue, i haven't gone through in details yet, how did it fixed

from smart-location-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.