I want to be able to create Android-Apps on my very old laptop. Since it can't run Android Studio I figured I could run it on my home computer and use RDS to access the PC with the laptop.
Now the problem was how to connect my Phone to my laptop and have it recognized by Android Studio on the PC. Since my laptop is in the same network as my PC (VPN) I managed to replicate this solution. I can run adb devices (since I've set the environment variable ANDROID_ADB_SERVER_ADDRESS I don't need the -H-flag) in the terminal and get my phone in the resulting list. However, when I try running the app in Android Studio no device is found.
So I am thinking that Android Studio uses an integrated ADB that ignores environment variables or some commands that don't support remote usage. Does anyone have an idea what I can do to have my Phone recognized by Android Studio and not just by adb on the PC? I don't want to manually load and start my apps every time I debug.
Related
am trying to run an android emulator on a windows pc and then am trying to run the code on another windows PC.
Like, i have a window pc with 8gb ram so it can't carry an emulator and still run the code together, so since i have 2 windows pc (not hign end), am trying to make use of both in order to make my work more faster as it always get super slow when i run my code and an emulator on one PC.
Am a flutter dev and that is what am using for coding in android, so if anyone knows of a way please do suggest it here, i will mean a lot to me and to some other people who are running into such problems.
Thanks in advance.
I have tried researching about this but it seems that it is quite easy to do if i had learnt react native instead as i can use expo for this and it will work find, but since am using flutter and since flutter don't have expo like software then am finding it hard to do this.
If you want to run an emulator on one computer and run code on another computer, you need to have both computers connected to the same network. Here's how you can do this:
Install an emulator on the first computer. For example, if you want to use Android emulator, you can install Android Studio.
Start the emulator on the first computer. This will create a virtual device that runs on the first computer.
Connect the second computer to the same network as the first computer.
On the second computer, use an Integrated Development Environment (IDE) like Android Studio to develop your code.
In the IDE, select the virtual device created on the first computer as the target for running your code.
Run your code on the second computer, and it will be executed on the virtual device running on the first computer.
Note: The steps may vary depending on the specific emulator and IDE you're using.
I am getting started with flutter. After a day of installing all the required stuff and running an android emulator for the first time, I figured that my pc is not powerful enough for running android without significantly slowing down the computer.
(Nope, I cant upgrade my pc.)
I was wondering if there is any way I can do flutter on my pc. Any way to get something like ui output on dartpad.
I am using VSCode.
If you have an android phone, just turn on developer mode and USB debugging on it and connect it to your computer and click run. Then the apk file will be installed on your phone and it will instantly change states whenever you click run. If you don't have an android phone you can easily get a decent one for just under $50.
If you have physical android device, you can connect it to your computer. and type flutter run in your terminal.
or
use flutter web(beta) type flutter run -d chrome in your terminal.
I'm trying to connect my android device to android studio to run flutter but keep having this issue:
The result should be like this:
But instead, I can't open the device option on my android studio:
When I run flutter doctor there is no error and the device I plug in show up.
The machine I'm using is Asus TUF A15 which runs AMD Ryzen 5 4600H processor.
Can anyone please show me the way to enable this option?
Thank you in advance!
Enable developer options and USB debugging on your android device. More information can be found on the Android documentation here.
Plug your phone into your computer with a USB cable. Allow your computer to access your device if prompted.
In your terminal, run flutter devices to verify that Flutter recognizes your devices
Run flutter run to start your Flutter app or use the function available in Android Studio.
You should also try another USB cable, another Android device, or even another USB port on your computer. (Something simple, but can easily get overlooked)
i've been trying to develop an Android application for some time now but the problem i keep facing is finding a suitable emulator to run a demo of the application (I think the default Android SDK emulator is crap). Anyway i did some research and came across the genymotion android emulator which is faster than any other emulators i have tired so far. I then went on to search for a plugin for my Mosync IDE which is an IDE built on eclipse that allows you to develop native, web or hybrid apps using htnl5, css, javscript, c/c++. Anyway i installed the plugin with the MosyncIDE the same way you install any new software in any eclipse based IDE and it installed fine. The problem i have now is that i am able to run the emulator okay but when i try to run my application inside that emulator i am unable to locate the genymotion virtual device in the list. I have been fiddling with my configuratin settings for days now without any results, i do not own an android phone so testing it directly on one is not an option for me, i would like someone to help me out with this problem thank you.
Please note that i am able to run the app normally with the default androidsdk emulator.
[What i have been trying soo far]
This is what i do currently, i start the genymotion emulator within the IDE.
I go to run configurations.
I choose Android Emulator.
I hit "Refresh AVD list"
Then i choose the android emulator i want from the list, the problem is i can't find the
genymotion emulator i started within that list.
Ok. The thing is that Genymotion device is not considered as an emulator but like a real device plugged on USB. You won't find it on the AVDs list but on the "running Android devices".
You first have to check if the running Genymotion VM is connected TO ADB: Run adb devices on a console. It should show you something like this:
List of devices attached
192.168.56.101:5555 device
The Genymotion device is shown as it's IP address.
If the Genymotion device is shown on this list, it should also appear on the list of available devices when you hit the "run" button of your IDE. Like in this picture (done with Eclipse IDE).
If it is not shown on the list, read my previous answer.
So you installed the Genymotion Eclipse plugin isn't it?
And it seems that adb devices does sometimes not display your Genymotion device.
When the VM boots into the Genymotion player, it executes:
adb connect <VM's IP address>
This connects the device to adb, so you are able to debug your apps with it.
Sometimes, it appears that the connection is lost and you have to run adb connect <VM's IP address> again. You have to do it manually for now.
You can get the IP of your running device using the Genymotion Shell with the command devices list
I have been developing an app for some time on a laptop machine and it has been going well. I always run the application on my own device just fine.
However, today I wanted to start working on the device from a different computer. So I downloaded the android SDK and tried to run the application on the same device (same phone, different computer).
The phone device has not changed and the android manifest has not changed. However, on the new computer, my phone is simply not being recognized by eclipse. It is being recognized by windows just fine, it is in developer mode and everything.
My minimum target SDK is 11 and my maximum is 17. When I try and find a device in eclipse, it says:
[2013-10-02 13:29:22 - Jelly] Failed to find an AVD compatible with target 'Android 4.3'.
The only difference is that the new computer (doesn't recognise the device) is running the Android SDK 2013-09-17 and the older computer (the one where it works) is running Android SDK 2013-05-22.
Any ideas?
Check the correct driver for that device is installed in your new machine or not and if it is installed then kill the adb from the TaskManager it will connect it again.
If you have a trusted Wi-Fi connection nearby you can use adb over network to connect without a cable. There are apps in the play store for that. Search for "adb Wi-Fi".