I want to run my flutter project on visual studio code with a real device (no emulator) since my laptop have a limited ram.
When I want to run it showing error after downloading.
I tied flutter doctor and eveything is ok and also I have enable us debugging on my android.
just plug in your device via USB and run
flutter run -d $deviceName
Related
When I'm trying to run my project Xamarin.Android in Hyper-V with Visual Studio 2015 RC (generally speaking, this error/bug or whatever may occur in different VS versions), I'm getting no deploy process to the emulator. However, the emulator has starting successfully, but nothing deployed into it. After closing the emulator, I'm getting this message:
Build Failed: MonoDroid does not support running the previous
version. Please ensure your solution builds before running or
debugging it.
My solution is:
Connect to android device in Hyper-V
Run in terminal "su root"
Run "netcfg" to obtain device ip addrress
Then in ADB command prompt type "adb connect 192.168.1.63"
After this VS/Xamarin begins the deploying process and all working fine.
End :)
Is this a bug OR can Xamarin/Visual Studio deploy applications (for example, android) to the device emulator automatically?
Google Sdk adb fastboot usb driver installed.. there is no issues and even not alerting any error message but app build is failing..
There is no use even after installing CTP 3.1 for VS 2013.
Kindly help me on it
As Alan says, VS will try to launch the app on the device if you have selected the "device" option and are trying to run or debug the app on the device. Does building to Ripple work? If its failing only for device, Can you please attach the complete build log?
VS uses ADB to connect to the device and so even though you have installed the driver, the ADB might not be able to see the device.
Can you run the following command to see if ADB lists the connected device:
C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe devices
Also please check whether your device shows up in the windows device manager.
Let me know what you find.
When I type adb devices -l this is the output:
$ adb devices -l
List of devices attached
VS9854G22b261d6 offline
I think that VS9854G22b261d6 is my phone. I had to install LG drivers before that would show up.
It seems like the solution to that "offline" problem is to update the android sdk. But, cordova requires an older SDK (api version 19, right?) So how can I make both adb and cordova happy?
I'm on Windows 8.1 and I have a Verizon LG G3 device. I have enabled USB debugging on the device. When I type cordova run android it starts the emulator and deploys to that. I am expecting this to deploy onto my connected device instead of onto an emulator. The "hello world" app deploys fine to the emulator, but I'm trying to deploy it to my device and I can't figure out why it's not even trying to do that.
When I type cordova run android this is the output:
...
BUILD SUCCESSFUL
Total time: 2 seconds
Built the following apk(s):
C:\...\cordova\platforms\android\ant-build\CordovaApp-debug.apk
WARNING : No started emulators found, starting an emulator.
Waiting for emulator...
### Error: could not find emulator icon resource: android_icon_32.png
In my case, I plugged into a different USB port and then it said "unauthorized". I changed the USB connection to camera and then the device asked me to authorize it. Then adb devices said "device" and cordova run android worked as expected. Seems to be a ton of different solutions to the same problem. This is all I needed.
I have the opposite of this problem: Android Studio doesn't see device
Android studio sees the device and can deploy to/ run on device no problem.
But I'm trying to use apache cordova and cannot see the device online from the command line.
adb devices
shows my device number, and "offline".
I've tried all of the recommended steps here https://stackoverflow.com/a/9966660/210757
Any suggestions?
Just created the basic cordova app (the Hello World app it generates), and
while
cordova emulate android
works fine on the emulator,
cordova run android
also fires up the emulator. My Samsung S5 is connected to the PC and USB debugging mode is enabled (after taping the build in settings 7 times, etc. http://www.valuewalk.com/2014/04/samsung-galaxy-s5-enable-usb-debugging-mode/ )
How to deploy it to my device directly?
Thanks
adb install path/to/local/apk
Or try with -s to install it on your phone's sd card. Apk path can be found in the build process's log, at the console.
Close the emulators first.