2017-04-10 7 views
0

反応しているネイティブgooglesigninモジュールを使用しています。反応しないネイティブgooglesigninを使用しているときにAndroidビルドに失敗しました

私はこのように、それはエラーをスローアンドロイドのnを実行します。 eror while running 'react-native run-android'

ここでは私のbuild.gradleファイルです:

dependencies { 
compile project(':react-native-fbsdk') 
compile project(':react-native-android-permissions') 
    compile project(':react-native-device-info') 
    compile project(':react-native-push-notification') 

    compile project(':react-native-barcodescanner') 
    compile project(':@remobile/react-native-splashscreen') 
    compile project(':react-native-camera') 
    compile project(':react-native-image-picker') 
    compile fileTree(dir: "libs", include: ["*.jar"]) 
    compile "com.android.support:appcompat-v7:23.0.1" 
    compile "com.facebook.react:react-native:+" // From node_modules 
    compile project(":react-native-google-signin") 

    compile 'com.google.android.gms:play-services-auth:9.2.1' // should be at least 9.0.0 
     compile 'com.facebook.android:facebook-android-sdk:4.0.0' 
} 

私も次のことを試してみました:

compile(project(":react-native-google-signin")){   
     exclude group: "com.google.android.gms" // very important 
    } 
    compile 'com.google.android.gms:play-services-auth:9.2.1' // should be at least 9.0.0 

誰も私にこの問題を解決する方法を教えてもらえますか?正規表現で検索します

+0

あなたはきれいにして、あなたのプロジェクトを再構築してみましたか? – iSandeep

+0

はい私は試みましたが、私の問題を解決しなかったし、他のモジュールがそのバージョンのみを使用しているので、バージョン9.2.1を10.2.1に変更することで解決します。 –

答えて

0

npm link は、現在の行は compile(project(":react-native-google-signin")){は、私たちは

compile project(":react-native-google-signin") 
{   
     exclude group: "com.google.android.gms" // very important 
} 

に、このようにそれを変更する必要があり、npm linkは、依存関係を検出し、重複することはありませんとき

関連する問題