Git Product home page Git Product logo

Comments (9)

vvasiloud avatar vvasiloud commented on May 18, 2024 24

Update: There is a problem in Windows when the file path is very long. Try renaming the project folder name and/or moving the folder direct to root path. That solved the problem. :)

from react-native-starter-kit.

rizwanellahi avatar rizwanellahi commented on May 18, 2024 7

Solved: Thanks @vvasiloud

from react-native-starter-kit.

BrianJVarley avatar BrianJVarley commented on May 18, 2024 1

@Jean-PierreGassin That's what I'm not quite sure of. How do I add the --stacktrace option to gradle. In the build.gradle file somewhere? Or another file?

Setup -

OS: Windows 10
node: v 4.4.7
npm: 3.10.3
phython: 2.7.1.3
c++: msvs_version_2015

Update..

I ran the build with --info flag and got more detail. It looks like the error is caused by resource img not found? No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_dark_normal_background'). C:\Users\Brian\Documents\Projects\react-native-starter-app\node_modules\react-native-device-info\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\10.2.0\res\drawable\common_google_signin_btn_icon_light_normal.xml:3:29-92

C:\Users\Brian\Documents\Projects\react-native-starter-app\node_modules\react-native-device-info\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\10.2.0\res\drawable\common_google_signin_btn_icon_dark_normal.xml:3:29-91 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_dark_normal_background').
C:\Users\Brian\Documents\Projects\react-native-starter-app\node_modules\react-native-device-info\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\10.2.0\res\drawable\common_google_signin_btn_icon_light_normal.xml:3:29-92 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_light_normal_background').
C:\Users\Brian\Documents\Projects\react-native-starter-app\node_modules\react-native-device-info\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\10.2.0\res\drawable\common_google_signin_btn_text_dark_normal.xml:3:29-91 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_dark_normal_background').
C:\Users\Brian\Documents\Projects\react-native-starter-app\node_modules\react-native-device-info\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\10.2.0\res\drawable\common_google_signin_btn_text_light_normal.xml:3:29-92 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_light_normal_background').

:react-native-device-info:processReleaseResources FAILED
:react-native-device-info:processReleaseResources (Thread[main,5,main]) completed. Took 2.038 secs.

FAILURE: Build failed with an exception.

Although if I browse to that location on my drive those missing xml files are in fact there:

res

from react-native-starter-kit.

Jean-PierreGassin avatar Jean-PierreGassin commented on May 18, 2024

Hey @BrianJVarley,

Have you tried running with the --stacktrace option in your gradle build parameters? Perhaps that will give you/us a better idea of what's going on here.

If that doesn't work you can try building the device-info package separately or re-link it to the project; let me know how you go.

from react-native-starter-kit.

mcnamee avatar mcnamee commented on May 18, 2024

Hi @BrianJVarley
Thanks for sharing your --info. I believe the issue relates specifically to react-native-device-info and may be resolved by upgrading your Android environment.

I'm running the latest Android SDK and Android Build Tools, and it all looks to be running well.

The following screenshots show my current Android SDK + Emulator settings (where this project runs without errors).

sdk

emulator

from react-native-starter-kit.

Syldel avatar Syldel commented on May 18, 2024

Thank you. On Windows, some file path are too long. Move the project to the root solve the problem. :-)

from react-native-starter-kit.

GastonEDiaz avatar GastonEDiaz commented on May 18, 2024

@vvasiloud
How would that be?
What folder would I have to move it to? Thanks

from react-native-starter-kit.

vvasiloud avatar vvasiloud commented on May 18, 2024

@GastonEDiaz Move it to root (C://) for example and see if it works

from react-native-starter-kit.

RajaSaravanan avatar RajaSaravanan commented on May 18, 2024

Moving the project to the root folder example C:\ solved the issue. Windows is always developer unfriendly. :-(

from react-native-starter-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.