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
RNGoogleSigninModule is not abstract and does not override abstract method onActivityResult #132
Comments
upgrading to react-native 0.34.1 fixed the issue on my project |
|
what I did, I kept my RN version intact but removed "Activity activity" from public void onActivityResult(final int requestCode, final int resultCode, final Intent intent) |
@manjeet-dobble thanks, that's work 👍 |
@mvnnn have you tested it in release mode ? |
@manjeet-dobble Now, "google-signin" working good. |
v0.8.1 doesn't work with React Native v0.30.0 actually. @manjeet-dobble you might want to try downgrading to v0.8.0. |
yeah I upgraded to RN 0.34.1 and its working fine now |
Hi, anyone having success using RN 0.35.0 + v0.8.1? I get
As far as I understand, the error means that something was compiled with older version of a jar, and during runtime a newer version of the jar is used. PS: I haven't managed to trace why this happens yet, Android Studio doesn't hint for any problems either. Any suggestions are welcome, I could try them right away and report if it works. |
@nayyden i I upgraded to RN 0.35.0 + v0.8.1. in my case it's working. see above discussion that's might helps you. |
Hi @mvnnn, Thank you for your reply but the error I get is in runtime, not on compile. See release notes for 0.33 (https://github.com/facebook/react-native/releases/tag/v0.33.0):
Maybe you are building with older version of react-native. Did you do npm install and react-native upgrade? There is something wrong in my setup too, but the above solution actually produces the error in the issue title, does not fix my problem. |
I fixed my problem, i had another package which I had to upgrade too. In case you run in the same problem: search for onActivityResult and check which packages implement this function without |
Another solution that worked for me: include both versions as overrides! : D Just call the not-having-activity-arg override from the having-activity-arg override, and you've got both cases handled. Obviously not ideal, but good for beginners like me who have no idea how two react-native versions are active at the same time. (one for compile time, one for run-time) (my issue for it, if you're wondering, from another project: https://github.com/Lichwa/react-native-file-picker/issues/3) |
Followed all the step giving in the android guide for setup, but still getting following error -
myProject\node_modules\react-native-google-signin\android\src\main\java\co\apptailor\googlesignin\RNGoogleSigninModule.java:40: error: RNGoogleSigninModule is not abstract and does not override abstract method onActivityResult(int,int,Intent) in ActivityEventListener public class RNGoogleSigninModule extends ReactContextBaseJavaModule implements ActivityEventListener { ^ C:\myProject\node_modules\react-native-google-signin\android\src\main\java\co\apptailor\googlesignin\RNGoogleSigninModule.java:53: error: method does not override or implement a method from a supertype @Override ^ 2 errors :react-native-google-signin:compileReleaseJavaWithJavac FAILED
react-native version 0.30
library version - 0.8.1
android/bluid.gradle -
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.google.gms:google-services:3.0.0'
android/app/build.gradle-
compile project(':react-native-google-signin')
compile(project(":react-native-google-signin")){
exclude group: "com.google.android.gms" // very important
}
android/setting.gradle
include ':react-native-google-signin'
project(':react-native-google-signin').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-google-signin/android')
The text was updated successfully, but these errors were encountered: