GithubHelp home page GithubHelp logo

Comments (3)

phalla-khong avatar phalla-khong commented on August 16, 2024 12

Finally i can solve my problem by modify some code:

  1. in file "react-native-activity-recognition/android/build.gradle":
    I changed dependencies
    from: compile 'com.google.android.gms:play-services:+'
    to: compile 'com.google.android.gms:play-services-location:10.0.1'
  2. in file "react-native-activity-recognition/android/src/main/java/com/xebia/activityrecognition/RNActivityRecognitionPackage.java"
    I removed code bellow:
    @OverRide
    public List<Class<? extends JavaScriptModule>> createJSModules() {
    return Collections.emptyList();
    }

Now it work :)

from react-native-activity-recognition.

Gp2mv3 avatar Gp2mv3 commented on August 16, 2024

Simply remove the java function, it's because of a change in RN 0.47 (if my memory is good).

from react-native-activity-recognition.

aswinramakrish avatar aswinramakrish commented on August 16, 2024

Following @phalla-khong's solution, just wanted to clarify a couple of things -

  1. Don't remove the entire function, but just remove the @OverRide keyword above the function. The bolded text wasn't clear and I ended up deleting the function without paying attention.

  2. Make sure 10.0.1 in his solution matches with the Google Play services version you're using, otherwise you might end up getting an error like -

    Build failure: duplicate entry: com/google/android/gms/auth/api/signin/zzm.class
    

from react-native-activity-recognition.

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.