Comments (3)
Finally i can solve my problem by modify some code:
- 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' - 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.
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.
Following @phalla-khong's solution, just wanted to clarify a couple of things -
-
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.
-
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)
- Linking problems HOT 1
- Incompatible Types: Inferred type does not conform to upper bound(s)
- detection status activity in iOS
- Is there a way to get an initial activity? HOT 1
- Failure: Build failed HOT 2
- Background mode HOT 2
- Not work in Background Android Oreo
- does not working in react 0.51
- Build Error on andoird HOT 4
- GPL Licensing - Major issues
- Not able to detect an Activity HOT 3
- Issue with ios Pod install HOT 2
- Documentation Android about Gradle HOT 1
- Add podspec for cocoapod HOT 1
- Is project still active/maintained?
- Something messed up!
- could not found compile() for arguments [com.google.android.gms:play-services:+] HOT 1
- Could not determine the dependencies of task ':react-native-activity-recognition:compileDebugAidl'. > javax.xml.bind.UnmarshalException (no error message)
- Any update for 2022? HOT 1
- Calling this.unsubscribe() twice
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-activity-recognition.