After Successfully setup the React Native Environment,after running i got an screen by default text
"Welcome to React Native,To get started ,edit App.js,Double Tap R on your keyboard to reload,shake or press menu button for dev menu"
But my problem is that after changing the file in Text App.js ,i can not able to see the change in my app,alwys showing the by default text.....
and also after shaking the app when i click the Reload button give an error Could not connect to development server..
can you suggest me how to resolve the above issue,,,,,Thanks in advance.
I think you didn't set up your debug environment completely. This is link. ( https://facebook.github.io/react-native/docs/debugging.html ) Maybe you could try it.
Make sure you've set up your debug environment properly.
run react-native start in a terminal (the current dir has to be the project)
run react-native run-android in another terminal: your device has to be plugged using usb cable, and developer mode has to be actived.
The app will be installed in your device, shake your device and tap enable live reloading.
You can now modify text and your app will be updated just by ctrl+s
Enjoy !!!
Related
I installed VS2017 a few days ago, created the simple app Build your first Xamarin Forms App, and now I want to debug.
I am having issues with the default Android emulator created by the VS2017 installation (Android_Accelerated_x86_Oreo) so I created a new emulator. This is the screenshot.
How can I change the default so it debugs in the newly-created emulator?
I wanted to point out that I'm new to all of this, so I would like to run it without having to install anything else. I would like to see something run before I install anything else.
I also wanted to point out that I've tried clicking on "Start" on either one of them when not in debug mode, and I get Could not start emulator. Unable to load DLL 'DismApi' error.
The only way it automatically starts is if I hit F5 and the emulator window pops up. Then I go to Tools > Android Device Manager and the default emulator says "Stop" (it's running). If I click on "Stop" and then press "Start", I will get the same error again: Could not start emulator. Unable to load DLL 'DismApi'.
Where you launch the debugger just click the arrow pointing down to open the dropdown. Then select you new device. It will stay as you default device. Please see the image for reference:
Note: You may have to restart Visual Studio for your new device to appear.
I have only just started android programming, but I have a few basics programs working. Normally when I click run in Android Studio and choose my galaxy nexus as a running device, the app I'm running opens and is saved onto my device, so that I can open my program when I am not plugged into my computer.
However, now when I hit run, my program opens, but it is not saved onto my device.
This happened almost immediately after I changed my application label in my manifest file, but I'm not sure if that's related. Any help is appreciated!
Make sure that "deploy the APK" is selected in Run-> Edit Configurations
You have to set it at the new project screen. Its greyed out but theres a link next to it. Just click it. Its next to the Package name and that is the only .app extension you need to execute the apk.
I had the same issue. For me the problem was that the icon was not appearing on the screen but I found the app was actually stored on the device. I have installed NovaLauncher on a Meizu U20. I went to see the "Applications List" (tr. it. "Menu delle app"), I found my app icon there and I drag/dropped it on the screen.
Well, I have an application in HTML5, Intel made the XDK (build in android)
Well when I install and then open the application, when al tightness input, it opens the keyboard and locks the application, making it close. Can you help me?
Without a code sample or more information it is hard to help you but I will suggest you try one of the demos that has an input field on an Android device and see if you have better results. Then at least you can look at the sample code to try to debug your application.
Open the Intel XDK
Click Start a New Project
Click Work with a Demo
Click on the first sample 'App Framework'
Click Use this Demo
Name your project
Click CREATE
You can use the Develop>>Design view to play with the input field or the Emulate tab to test the input field.
Click on the BUILD tab
Under Android click BUILD
Click UPLOAD TO SERVER
Click BUILD APP NOW
Click DOWNLOAD apk
Open a console or terminal prompt
Use adb install *.apk to install your app on device
Use the input field.
To debug your application:
Click Emulate tab
Click on the little bug in the top left corner of the Intel XDK tool bar next to the reload button.
Click Console in the pop-up dialog
See if there are any errors in your application in red font.
We have a webinar on debugging that will be posted soon but for now you can reference this video for an overview on how to debug an app remotely on your device:
https://software.intel.com/en-us/html5/videos/how-to-debug-apps-remotely-using-the-intel-xdk
You can add several console.log("gets here! line #: 27"); in your code and you will see them in the console window when you run your application remotely or in the emulate tab.
I'm getting started with Android development and with Genymotion. It's difficult to get Genymotion to install a .apk and run it more than once. Here's what I'm doing:
Begin with Genymotion running.
Press Genymotion icon in Elipse.
See Genymotion Virtual Devices Manager. Note that State of my VM is on
Create a new Android Project
Press the green Run button
See Run As dialog. Select Android Application
See Android Device Chooser. Select Genymotion_nexus_one
See hello world app run. Press GM home button
From here if I change the app, it's difficult to get the app to re-display in the emulator:
Drag a button to activity_main.xml. Save.
Press the green Run button
Nothing happens
To get the app to re-display requires jiggle the Handle type actions:
If I Clear the console log or bring up the GM Virtual Devices manager, before I press the Run button, the app will generally display in Genymotion.
Any ideas how to make Genymotion behave without Jiggling the handle?
I'm running the latest SDK: 20131030 on OSX 10.7.5
Drag drop apk on Genemotion emulator ,it will automatically installs and creates a shortcut.enjoy.
run in command-prompt :
adb install your_app_name.apk
:-)
Solved:
Since installing the adt-bundle-mac-x86_64-20131030, I'd never right-clicked the Run button to display the drop-down menu there. Having done that once, pressing the Run button now brings up Android Device Chooser every time (as it should).
When I first ran into this problem, I reinstalled adt-bundle-mac-x86_64-20131030 and Genymotion. I saw no change in behavior. This appears to be a minor bug in this version of adt-bundle-mac-x86_64-20131030
In Android Studio, if you run your project (shift+F10) when Genymotion virtual device is running; you'll see the device in connected devices list in Select Deployment Target window.
I'm coming from Visual studio and C# and am new to Android (and eclipse) so quite ignorant of basic functionality.
I've written a short app and ran it under the emulator. No problems.
Now I've made some changes and want to test them. In VS I'd stop the application debug run before making code changes, and after the code changes run again.
I can't find the 'stop' debug button in eclipse. How do I run my app after I've made changes?
What you can do is press the [Escape] key on your keyboard or the 'Back' button within the Emulator to close your app then rebuild and run it in Eclipse, which should bring it up as active in the Emulator.
You can just run it again and the code changes will apply.
But else you'll find it under the Debug-window (Window->Show View->Debug) and there is a "terminate" button in the top right corner of your screen.
You might need to close the app inside the emulator though..
There is deference between just running the application and debugging, you can pres play in ellipse and that will run the app but what you can also do is to switch the perspective in debug view (to switch go to the right top corner, and change from java to debug perspective)
in debug mode you can also set break points, just like in visual studio the only difference here is you must change perspective