Giter Site home page Giter Site logo

Comments (7)

xfrenette avatar xfrenette commented on September 24, 2024 7

What worked for me was to add

dependencies {
...
+ compile project(':react-native-background-timer')
}

in android/app/build.gradle (note the app/)

from react-native-background-timer.

RailtonMatthew avatar RailtonMatthew commented on September 24, 2024

I get the same issue. Running RN v0.48.1

from react-native-background-timer.

tsdevelopment avatar tsdevelopment commented on September 24, 2024

Is there any progress on this? I get the same issue running RN v0.48.2

from react-native-background-timer.

RailtonMatthew avatar RailtonMatthew commented on September 24, 2024

It is now working for me. Did you upgrade to v0.48.2 or do a re-install? For me upgrades have never worked. I create a new project ( React-Native init ) re-install the packages and then copy across my source code.

from react-native-background-timer.

tsdevelopment avatar tsdevelopment commented on September 24, 2024

I did not upgrade to a newer version of RN. It is a completely new project. Maybe it is a problem with other dependencies?

from react-native-background-timer.

RailtonMatthew avatar RailtonMatthew commented on September 24, 2024

Could be. I've just done a fresh install also and it works. I did need to run gradlew clean so you could try that. Sequence I used is:

npm i react-native-background-timer --save
react-native link
cd android
gradlew clean

from react-native-background-timer.

tsdevelopment avatar tsdevelopment commented on September 24, 2024

What worked for me was to add

dependencies {
...

  • compile project(':react-native-background-timer')
    }
    in android/app/build.gradle (note the app/)

Thank You! That's it!

from react-native-background-timer.

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.