Google-signin: Execution failed for task ':react-native-google-signin:mergeDebugAndroidTestResources'

Created on 16 Apr 2017  路  2Comments  路  Source: react-native-google-signin/google-signin

We are getting this error and seems to be a permission issue but we cannot find a way to bypass that. We are using latest 0.10 version.

Error: Failed to crunch file C:\Projects\Projectnode_modules\react-native-google-signin\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\10.2.1\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png into C:\Projects\Projectnode_modules\react-native-google-signin\android\build\intermediates\res\merged\androidTest\debug\drawable-hdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png

Any help appreciated.

馃挜 Bug

Most helpful comment

This is Windows's famous file path character limit issue.

http://stackoverflow.com/questions/1880321/why-does-the-260-character-path-length-limit-exist-in-windows

What can I do about this ?

you can change your build directory of your project. In your project-level build.gradle add buildDir definition:

allprojects {
    buildDir = 'C:\\tmp\\'
    repositories {

    }
}

All 2 comments

This is Windows's famous file path character limit issue.

http://stackoverflow.com/questions/1880321/why-does-the-260-character-path-length-limit-exist-in-windows

What can I do about this ?

you can change your build directory of your project. In your project-level build.gradle add buildDir definition:

allprojects {
    buildDir = 'C:\\tmp\\'
    repositories {

    }
}

Please follow @okarakose tip.

re-open this issue if it is still a problem.

Was this page helpful?
0 / 5 - 0 ratings