Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error #68

Closed
dhammma opened this issue Oct 15, 2018 · 5 comments
Closed

Compile error #68

dhammma opened this issue Oct 15, 2018 · 5 comments

Comments

@dhammma
Copy link
Collaborator

dhammma commented Oct 15, 2018

After updating the package to 0.7.0 in my project I see the error when ./gradlew assembleRelease:

> Task :react-native-google-fit:compileDebugJavaWithJavac FAILED
/Users/dmitriisalenko/projects/xendera-enterprise/node_modules/react-native-google-fit/android/src/main/java/com/reactnative/googlefit/GoogleFitManager.java:173: error: cannot find symbol
        GoogleSignInAccount gsa = GoogleSignIn.getAccountForScopes(mReactContext, new Scope(Scopes.FITNESS_ACTIVITY_READ));
                                              ^
  symbol:   method getAccountForScopes(ReactContext,Scope)
  location: class GoogleSignIn
1 error


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-google-fit:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
@dhammma
Copy link
Collaborator Author

dhammma commented Oct 15, 2018

@EJohnF do you know something about it? Would be grateful for investigation or help.

@EJohnF
Copy link
Collaborator

EJohnF commented Oct 15, 2018

Have you changed anything in your code?

Can you pls check 0.6.2 version or this commit - a87757d

I would assume the problem with version of com.google.android.gms:play-services-fitness lib

@StasDoskalenko
Copy link
Owner

@dmitriys-lits have you tried ./gradlew clean ?

@StasDoskalenko
Copy link
Owner

@EJohnF ya I guess com.google.android.gms.common.api.GoogleApi. getAccountForScopes () is available since 15 Google Play Services API

@dhammma
Copy link
Collaborator Author

dhammma commented Oct 16, 2018

Seems like really I had the problem with Google Play Services API version.

Everything is okay now, thank you all for help.

@dhammma dhammma closed this as completed Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants