Comments (9)
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.
Solved: Thanks @vvasiloud
from react-native-starter-kit.
@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:
from react-native-starter-kit.
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.
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).
from react-native-starter-kit.
Thank you. On Windows, some file path are too long. Move the project to the root solve the problem. :-)
from react-native-starter-kit.
@vvasiloud
How would that be?
What folder would I have to move it to? Thanks
from react-native-starter-kit.
@GastonEDiaz Move it to root (C://) for example and see if it works
from react-native-starter-kit.
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)
- i am not able to build apk. I am using expo cli. HOT 2
- Message
- Help with converting Firebase to standard HTTP library HOT 2
- expo SDK version is outdated HOT 5
- Need to update Expo demo to latest version HOT 7
- yarn install error HOT 3
- [Question - docs] Admin role HOT 1
- Any ideas how to get rid of warnings in dev env? HOT 1
- [Question - docs] I can't find docs about how to run linting HOT 1
- Errors on yarn install HOT 1
- App crashes in Windows 10 HOT 2
- [Q] Any kinf of configuration available? HOT 3
- Can't get .env variables working HOT 5
- Can't start web project HOT 1
- How to change project name and package? HOT 1
- Suggestion: Migration from react-native-router-flux to react-navigation HOT 1
- Suggestion: upgrade to RN 0.64 HOT 2
- r.split is not a function. HOT 2
- Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.31
- async-storage dependency deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-starter-kit.