Google-signin: Getting Java Exception in "NativeModules"

Created on 28 Aug 2017  路  4Comments  路  Source: react-native-google-signin/google-signin

Hello,

I am getting Java Exception in "NativeModules".

What went wrong in following code.

dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+" // From node_modules

// RNFirebase required dependencies

compile(project(':react-native-firebase')) {
transitive = false
}
compile "com.google.firebase:firebase-core:11.0.4"
compile(project(":react-native-google-signin")){
exclude group: "com.google.android.gms" // very important
}
// If you are receiving Google Play API availability issues, add the following dependency
compile "com.google.android.gms:play-services-base:11.0.4"

// RNFirebase optional dependencies
compile "com.google.firebase:firebase-ads:11.0.4"
compile "com.google.firebase:firebase-analytics:11.0.4"
compile "com.google.firebase:firebase-auth:11.0.4"
compile "com.google.firebase:firebase-config:11.0.4"
compile "com.google.firebase:firebase-crash:11.0.4"
compile "com.google.firebase:firebase-database:11.0.4"
compile "com.google.firebase:firebase-messaging:11.0.4"
compile "com.google.firebase:firebase-perf:11.0.4"
compile "com.google.firebase:firebase-storage:11.0.4"
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}

apply plugin: 'com.google.gms.google-services'

screenshot_2017-08-28-16-59-17-653_com serviceking

馃挜 Build Issue

Most helpful comment

got the same error and adding compile "com.google.android.gms:play-services-auth:11.2.0" to the dependencies in {yourApp}/android/app/build.gradle fixed it @yogeshpaisode ,
of course you should change the version of the package to the one you are using... hope it helps

All 4 comments

got the same error and adding compile "com.google.android.gms:play-services-auth:11.2.0" to the dependencies in {yourApp}/android/app/build.gradle fixed it @yogeshpaisode ,
of course you should change the version of the package to the one you are using... hope it helps

In an effort to clean the issues up, this is being closed. Please open a new issue with a reproduction if you're still experiencing a problem.

i am having the same issue till yesterday my project wan working fine now suddenly it having native module issue

@yusuf987 can you open a new issue about this? In the mean time check the example app to check how correctly configured android/build.gradle and android/app/build.gradle should look like.

Was this page helpful?
0 / 5 - 0 ratings