I've been working with React Native for about the last week on my mac. After the initial setup which was a pretty huge pain in the ass I've had no issues building my app. Of course, today all builds decide to fail and I get the following message
I run adb devices and it looks like my device has disappeared?
Debugging, etc is enabled in my settings and I've setup the android environment obviously because I've been developing like this for about the last week.
I vaguely remember using the linux setup to get it working initially
https://facebook.github.io/react-native/releases/0.21/docs/getting-started-on-linux.html
But now my device isn't even showing up when I run lsusb
I've also tried different USB cables and different ports but still doesn't show up.
Any thoughts what this could be? Thanks
Related
this the screenshot of my Android Studio, I'm trying to learn flutter but I'm having issues while setting my physical device to it, android studio says loading device for hours and nothing happens, and even I'm failing to initialize ABD
As you can see on the top side of your screenshot, the android studio doesn't recognize your physical android device. Make sure that your phone is connected properly and USB debugging is turned on. also you can install ADB directly if it was not included in the Android SDK.
I almost spent whole day to search everywhere, tried to figure out this but no luck.
I used my cell phone samsung S10 installed android10 for android app dev under React Native. Usually I just connect my cell phone to my pc via USB, cd into my project, run 'react-native run android', wait for the metro bundler start up and loading, then app was installed in my cell phone, most of the time I enable 'remote JS debugging' and code based on the chrome console log, everything was smooth.
However suddenly one day after enabling 'remote JS debugging' as usuall, the app kept tell that 'no internet connection', and from the chrome console, every requests were all timed out. I didn't do any modification/configuration (at least I can't recall any) either in my phone or my pc dev environment, and the data server worked good as well at that time. When disable 'remote JS debugging', the app then could connect internet without any issue, worked back to normal.
I have two RN app projects, one is RN 0.55 and the other is RN 0.62, this happens on both so it is not related with RN or projects themselves.
I tried in different PC with the same cell phone, issue both happened, so it's not realted with PC dev environment.
I tried another cell phone then everything works correctly so it is obviousely something wrong in my samsung S10, although I didn't change anything but I still went through all the config especially in developer options, USB debuggin is on, USB configuration is 'Transferring files/Android Auto' as usual, nothing looks fishy or wrong. Also tried to turn off and on developer options to reset them, tried to clean chrome cache, but no, didn't fix.
To summarize: the app in my S10 cell phone can't connect to network when it is operated in 'remote JS debugging', can anybody help me out or give some hint here? btw I don't want to reset my S10. Thanks a lot!
I have written a simple login page using xamarin forms. When I try to deploy it on emulator, the emulator opens but my app is not visible.
1) Does it take time for the app to be deployed? Or would it appear on start up?
2) Should warnings be considered? I have no errors though.
Most Android emulated devices are slow. I have found that some of them simply won't render an app. This is not an indication that the physical device, which you are trying to emulate, won't work however. Try testing what works in an emulator and then creating a copy of what works in the device manager. Then make slight changes that are closer to the target device in the copy. Deploy every time to ensure that it is working. This process takes patience. If you are fortunate enough to have the physical device, debug through the USB connection.
I am unable to attach VS2017 to my unity android app. Here's my setup.
I have adb connected via wifi.
C:\Users\Diamonds\AppData\Local\Android\sdk\platform-tools>adb devices
List of devices attached
192.168.86.20:5555 device
Unity successfully sends the build to the android phone, and logs show up when the app runs on phone:
I've got the app just running on the phone. Inside VS2017 the phone shows up correctly. When I select it, VS2017 spins for 20 seconds then does nothing. No error in VS2017 or in Unity.
Oddly I do not have the phone connected via USB. I do not know why it shows up there.
I think you can try USB instead of WIFI.
According to Microsoft's documentation
Wifi is versatile but super slow compared to USB because of latency. We saw a lack of proper multicast support for some routers or devices (Nexus series are well known for this).
using USB is a better option.
ref:
https://learn.microsoft.com/zh-cn/visualstudio/cross-platform/troubleshooting-and-known-issues-visual-studio-tools-for-unity?view=vs-2017
I decided to try and create an Android app using Xamarin in Visual Studio 2015. However, when I click on Debug, the emulator opens and there is only a black screen. No Android logo or anything.
I already scavenged Stack Exchange among other sites for solutions, such as checking or unchecking Use Host GPU. But nothing seems to work.
Here is a screenshot of the configuration
What could be the problem?
Thanks
Have you consider trying Samsung Test Lab? every time i run an emulator it's a pain, and it's super slow, the best way i found that works for me was Samsung Lab you can test your app on a real device i think this is the best way to test apps
you can connect the device via adb using adb connect localhost:port or adb connect 127.0.0.1:port