I have setup basic react native android project. when i use react native cmd line to run the android project it gives me below error:
I have set my system variables for android and java properly. but still its asking NDK to be installed .
How do you know you've set the system variables for android and java properly if it doesn't work?
Has it ever built on this computer before?
Are you sure NDK is the problem?
The part that says What went wrong seems to show that you are lacking admin rights.
Have you tried running CMD as admin?
react-native run-android Building Error ':app:generateDebugBuildConfig'
This fellow StackOverflow user also came across this problem and fixed it by properly initializing his Path variable.
https://github.com/react-community/react-native-maps/issues/1813
This github react-native community issue addresses a similar problem and a user commented:
Fixed it by running npm start -- --reset-cache (after following the Android Installation guide ) on react-native 0.50.3
How to set up Android for React-Native without Android Studio but only using the SDK tools?
I've previously answered my own question on initializing Windows environment variables for Android. Please take a look and tell me if that is how your system is set up.
Related
I am using the Android Studio to create a new flutter project, but it just got stuck when creating the project, for hours. I don't know what to do, need help.
BTW, I am using Mac, there seems no opening with administration mode in it.
It takes Internet Connection for the first time for building the application in flutter, and other aspect also may effects like hardware configuration.
Try starting Android Studio in Administrator mode
Make sure that you have not ticked the "create project offline checkbox".
Keep the "Flutter SDK location" and "Project location" in a local path
(e.g. c:\users\xxxxxx)
I ran into similar problem on my Mac. The following was my state of my machine at the time of the problem.
I had upgraded to macOS Big Sur.
My copy of Android Studio was working before the upgrade.
My copy of flutter was installed using brew before the upgrade.
When I ran into the problem, after a bit of reading,
I uninstalled and reinstalled flutter using brew, and problem went away.
For me, I think there must have some change in directory permission settings that caused Android Studio to get stuck when creating application.
So I recently started working with my friend on his app project and I've had trouble building his react-native based project. It's both ios and android.
On android, I can get as far as building, but when I run the app shuts down instantly or shows a red screen with some firebase error.
On ios, I get a build error.
My question is: what do I need to install when I first pull the repo from github? I run '''yarn install''' straight away and run '''pod install''' from the ios folder but that isn't enough. Anything I should run for android more than the yarn install command I had already used?
Thanks!
It seems your development environment is not set up yet. Follow this link to set up your environment.
Something happend today with my Android studio program, I can no longer run any applications through it.
I've tried restalling it and everything, but i cannot get an android installation in there. As you can see next to the build icon, it's empty. Any help is greatly appreciated.
and yes, i've set ANDROID_HOME
"Cannot find entry file index.android.js in any of the roots:
[/"c:////Users////Sekf////Documents////GitHub////TestProjOne/"]"
I started a react native project from scratch using react-native init ProjName. It gives me an error on the first run. This is the error I'm getting in the console. I realize there are lots of other question asking basically the same things and I've tried pretty much every fix I could find. Also, the error that I'm getting is a bit different since there are way too many backslashes in between each directory and no other post has had a similar error.
Here is what I've already tried:
Start packager with npm start -- --reset-cache
Start packager with npm start -- --root '/my/project/root/'
Tried downgrading to react-native v0.44.0 as well as many other version
Tried downgrading react to a few different versions
Basically tried multiple different versions of every dependency in the initial react native app
Double check android studio settings. I've gone through the react native docs multiple times. No luck.
Re-installed everything: Android Studio, Node, npm, react-native-cli, JDK
I'm completely at a loss.
Trying to setup the react native on Windows 7 as per instrcutions provided at https://facebook.github.io/react-native/docs/getting-started.html, after installing all the mandatory tools & dependencies, started getting below issue while running react-native run-android command.
Also looked at many options like setting up proxy for gradle etc but nothing seems to be worked till now.
Hope to get some quick help.
Are you sure it is not a temporary connection issue? Can you ping the server and get a response? Can you open the URL to the resource directly in your browser?