Comments (9)
Hey @Code-Tap, this looks like a problem with your android/build.gradle
file. Check to see that you have all the repositories added like so:
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
google()
}
}
And it should work. If not, I'd check out this thread for more help. Let me know how it goes!
from react-native-boundary.
Im getting that error as well!
Tried couple of solution including yours, its not working.
from react-native-boundary.
This is the android/build.gradle
file that I'm using in my own project with this lib:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.2.1'
}
}
allprojects {
repositories {
// Add jitpack repository (added by react-native-spinkit)
mavenLocal()
google()
maven { url "https://jitpack.io" }
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
ext {
compileSdkVersion = 26
minSdkVersion = 16
targetSdkVersion = 26
buildToolsVersion = "27.0.3"
supportLibVersion = "27.1.0"
googlePlayServicesVersion = "15.0.1"
firebaseVersion = "15.0.2"
gradle3EXPERIMENTAL = "yes"
androidMapsUtilsVersion="0.5+"
}
Without seeing your android/build.gradle
file it's a bit difficult to parse exactly why you'd be having this problem.
from react-native-boundary.
I think maven { url "https://jitpack.io" } is the one thats causing the build to fail. Im gonna check it out when I get the chance and let u guys know!
Thanks!
from react-native-boundary.
I tried to copy to your build but it didnt work. I tried copying the maven{url "https://jitpack.io"} and It still didnt work.
My build :
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
maven {
url "https://maven.google.com"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.2.1'
}
}
allprojects {
repositories {
mavenLocal()
google()
jcenter()
maven {
url "$rootDir/../node_modules/react-native/android"
}
maven {
url "https://maven.google.com"
}
maven { url "https://jitpack.io" }
}
}
ext {
compileSdkVersion = 26
minSdkVersion = 16
targetSdkVersion = 26
buildToolsVersion = "27.0.3"
supportLibVersion = "27.1.0"
googlePlayServicesVersion = "15.0.1"
firebaseVersion = "15.0.2"
gradle3EXPERIMENTAL = "yes"
androidMapsUtilsVersion="0.5+"
}
from react-native-boundary.
@TareqAbughosh, what's the exact error you're getting?
from react-native-boundary.
@eddieowens I had the same error the OP had. I fixed it and its working great now then I had way more errors that I can't even remember... But they were dependencies errors. Just 1 question though.. Can I use this in the background? or at least register it as a service?(if yes, do u have any package that does that? or at least a page where it explains how to do it?)
Heres my android/build.gradle file (I've more than just this package..)
Thanks a lot for the help and for this package!
from react-native-boundary.
@TareqAbughosh that's great! Yes this library works in the background as long as you follow the README but there are some problems with Android being inconsistent and I can't figure out why. I have a question posted here to hopefully get some help. If you have any suggestions as to why this may happen I'd love to hear them or if you can upvote my question to increase its visibility that'd be great. iOS has no problems though and works as expected.
from react-native-boundary.
I'm not sure why!
I used another package to run it in the background But I reckon using a webview from react native would also execute the job right?
P.S: I tried to upvote u but it said I don't have enough rep (Cuz I just made the account :X)
from react-native-boundary.
Related Issues (20)
- 'React/RCTDefines.h' file not found HOT 2
- Native Module cannot be null on ( "react-native": "0.60.5") HOT 8
- How to check boundary for a line/route between two points? HOT 1
- Pod Fail - HOT 5
- Boundary "on Enter" not firing on iOS 13
- New Event - Currently in the added geofence or not
- events not firing in android 10 in react-native 0.61.5 HOT 6
- Headless event listener not called when app is killed HOT 24
- [Android] Re-register boundaries on device boot
- Problem in testing the app HOT 1
- Boundary dont start when i allow only use in app HOT 4
- Is there any way that we can get events for Gps Turned off/on?
- Updated podspec file
- Headlessjs doesn't take effect when app is killed and when is background
- Issue PendingIntent.FLAG_IMMUTABLE app crashed on Android app Target 31 (Android 12) HOT 1
- Got error code 1004
- React Native Boundary Enter and Exit Trigger
- App Error JobIntentService HOT 2
- Pemission issue HOT 1
- need to reboot device for geofence in/out events
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-boundary.