Closed phalla-khong closed 6 years ago
Simply remove the java function, it's because of a change in RN 0.47 (if my memory is good).
Finally i can solve my problem by modify some code:
Now it work :)
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
Hi, i got error when build
: method does not override or implement a method from a supertype @Override ^ Note: D:\projects\MyAct\node_modules\react-native-activity-recognition\android\s rc\main\java\com\xebia\activityrecognition\DetectionService.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error :react-native-activity-recognition:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':react-native-activity-recognition:compileReleaseJava WithJavac'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
who know how to solve this problem, thank you.