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?
Related
I m working on a react native project and now the project won't open on my android device.
I don't recall changing any settings or anything anywhere.
I tried opening projects from different systems on my Android device and its working.
So the problem is in my PC.
The error on the app while connecting is "Uncaught Error: java.net.Exception: Failed to connect to /127.0.0.1:19000". I tried changing the port (doesn't work).
I want to use LAN only and not tunnel as tunnel is slow and takes a lot of time, so help me fix this.
Feel free to ask for any other info. I really want this resolved.
Set the env var REACT_NATIVE_PACKAGER_HOSTNAME to your ip.
Make sure you're connected to the same Wi-Fi network as your mobile device.
Sign in to the same Expo account on your computer and this app.
Check you have the latest version of Expo CLI.
Hope it helps!
try to open tunnel mode:
instead of expo startuse :
expo start --tunnel
I seem to be having the opposite issue of what I've been able to find. Deploying the Flutter project with Firebase hosting works, but when I try to test run in Android Studio I get the error "TypeError: dart.global.firebase.Firestore is not a function". I've made sure the index.html file has all the SDKs, and the fact the deployed version works indicates to me that everything is set-up right. My only guess is that there is some issue with Android Studio or my firewall blocking firebase in the localhost, but I can't seem to find a fix. It's not a huge issue cause I can do all the testing with the Android Emulator, but it would be nice to be able to check if the Web version is working properly without having to deploy. Any advice appreciated.
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.
I'm making my first steps in phonegap. I've been able to set up a project, install a plugin and build the app on my phone without errors. However, now, when I try to change the layout of my www/index.html in the project's root platforms/android/assets/www/index.html stays untouched whenever I (re)build the app.
I'm basically working in eclipse, only for html and javascript I use sublime. I've searched now for a couple of hours for a solution. The most promising approach was this thread: Changes to HTML files not showing on built phonegap 3.0 app ... but even that didn't work.
What can I have done wrong? There's no error, no warning (none resulting from the build process) and I don't know how I could debug the issue. I'm currently using phonegap/cordova 4.2.0
Any clue? Thanks
I still don't know the reason for my problem. However, installing the app via cordova CLI rather than eclipse seems to have solved the problem:
$ cordova prepare android
$ cordova run android
I'm a n00b developer at my second attempt to use the Android SDK. I'm
developing on the Mac platform and I've noticed that the latest
version of the SDK doesn't include anything except the tools (so I
have no plugins, no targets to choose from inside the package I
downloaded).
So I tried to use the Android SDK and AVD Manager to download and
install some, however, I got this error:
Failed to fetch URL https://dl-ssl.google.com/android/repository/
I went to the settings and checked the box to force fetching via HTTP,
but no result. I was suggested to look for a configuration file, but
couldn't find any.
Any suggestions? I'm dying to get my hands dirty with the SDK.
Whenever I've seen that error, I've just retried the download several times and eventually it went through. I've only run into it when I was behind a proxy, but that might not be your problem.
Here you have a Android tutorial, step by step.
http://www.vogella.de/articles/Android/article.html
Its means that you are behind a proxy.Go tools->options in your android SDK manager and enter your http Proxy server and port and it'll work.