I'm working in Eclipse Luna in osX Yosemite and I have a little problem.
In one of my projects, when i try to execute the app The ADC appears blank without any physical device.
That project was working but when i changed the name of the project it stopped executing correctly.
After some investigate I've seen that in projects that I executed previously and have "Use same device for future launches" marked it works but when I need to choose I can't do it.
I've tried two different devices, change the USB cable, fix project properties, reset the ADB server.
Any ideas or suggestions?
Thanks.
I have also faced the same problem.Adjust the bonds of Serial Name by making the area larger or smaller and your device will be visible.
Related
I'm not really sure how to word this.For some reason when I install an app that I'm working on from Android Studio it runs very slow (when an option is pressed it takes 10-20 seconds to register). But if I install the app from either my coworkers Android studio or adb from my own machine it works fine.
My specs are:
OS: Windows 10
Android Studio Version: 3.0.1
Phone OS: Android API 24
It was working fine this morning, but during the course of the day, something has happened. Has anyone run into this sort of problem before?
I'm using a Samsung Galaxy S8 physical device. I have tried a factory reset on the phone which worked for one install after I changed some things I'm back where I started. I have also restarted both the machine and phone multiple times. I'm at a loss as to what is going on. If you guys need any more info let me know. Also INSTANT RUN IS NOT ON.
EDIT: I'm at a total loss as to why this is happening. I've tried everything from restoring the phone, reinstalling Android Studio, changing wires, changing settings, but nothing is working. If anyone has a suggestion I will gladly try anything.
I've finally found a solid solution to my problem. I'm positive now that something went wrong with m usb drivers for windows 10. I went to this page https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware/windows-10-slow-usb-30-transfer-speeds/a5e1eebb-74bb-4777-8902-5131f3e8ec3e and I completed the steps in method 1 and that did the trick for me. it took a while to find this out, but hopefully, someone else will find this helpful.
Have you compared your yesterday build and today build which is making your app slow. Any Significant change in code?
Have you set up breakpoints or similar? Some debugging options can significantly slow the app down at runtime. When this happens, if you disconnect the phone from ADB - e.g. pull out the cable - and it speeds up again, then it's likely related to your debug connection to that particular instance of Android Studio.
When i tried to run my project in android studio it does not show any device
But i had correctly installed the adb interface driver and it also show in my device manager(Android Device -> Android Composite ADB Interface ).
My device is LAVA iris X1 (kitkat 4.4.2)
Usb debugging was on
usb connection was switched to PTP (Camera)
I had also tried certain posts but non of them works
Please provide a helpful solution.
Thanks in advance.
launch 2 devices at the same time, sometimes the firts device launched is not showing probably for some bug but the second is recognized
Did you download the proper drivers for your device? I also find it useful to have the device dialog come up. If you go to Run Configurations you can select an option which will show the device chooser every time. Sometimes I have to plug and unplug my phone once or twice for it to be recognized. This screens help me debug this potential issue. Other then that check the drivers for the device if on Windows.
I have an LG G2 that runs Android 4.2.2. I've done everything I can to make sure that it's in a proper position that I can run my Android app on it. However, each time I try to run my application, it doesn't detect my device.
I've done everything from going to LG's site and manually downloading the driver (it's also on the phone itself). I've enabled USB Debugging on my phone in developers mode, and I set android:debuggable = "true". I'm not sure if this means anything, but my phone is connected to my computer via MTP, and whenever I try to go into usb_drivers in my eclipse directory, my laptop automatically determines that all drivers are up to date.
I honestly do not know what's going on here. If it matters, I've set in my Run Configurations to ask me to pick the device, but all that comes up is the Emulator, not my phone itself. I've also tried two different USB cables. Is there something I'm missing here??
Any help is appreciated! Thank you!
try to restart adb server
try to use wandoujia or something similar to install driver
try to restart your eclipse
When you connect the phone to the computer it should bring up a screen with four different options of how to connect. You need to select internet connection and pick either of the two options (I chose Ethernet). After selecting one, it will pop up a little screen about trusting the computer. Accept it and it should then be recognized by Eclipse.
(if your Os is windows) Try this:
Go to ControlPanel -> DeviceManager
Open (Universal serial bus controller) node.
You should see an item marked wrong something like (USB Composite Device). select it, right click on it and the select update driver and then select (Search Automatically ...)
You probably need to plug out your phone from computer, plug it in again.
Don't forget to select the option (debugging mode) to true in your mobile phone.
Had same problem. Installed Kies software, and it automatically installed all needed drivers. http://www.samsung.com/in/support/usefulsoftware/KIES/JSP
Try this:
In the left panel in eclipse i.e. in package explorer click on your main application folder. Then click on run in the panel above. Now you will be able to see two options. One is for the hardware device you are using and other for the emulator.
Try and report back
Hi I'm trying to compile a Titanium Android app directly on my Nexus 7 (2013, SDK 4.3) device but I can't see any 'Titanium on Android Device' option in the Run Configurations.
My device is in Developer mode, connected to the USB, detected by Android File Transfer (Mac OS X 10.9, Titanium 3.1.4), detected by adb...
I tried to restart adb, restart Titanium, plug and unplug the device, but I still cannot see the option.
I also tested all this with Titanium 3.1.3, with no success.
I have no clue of what's happening :/ any help would be appreciated. thanks
It may sound stupid, but my friend had similar problems with his Nexus and he changed the USB slot to which he plugged his device and it worked.
Try using a different cable. Most cables are only able to load the device, somehow. Not every micro-USB-cable is capable of sending data, correctly.
Again a reason why I don´t like to work in the android environment. No one checks whether software and hardware is working the way it´s supposed to. That´s why I love Apples restrictive "closed" system. No 1000 viruses and other crap.
Well, that was a bit confusing but I finally found such option inside a Project Explorer menu...
i m starting (or at least trying to) developing android application(s) and I m using eclipse for it along the android sdk.
Now I m wondering if there's a faster way to "test" and tryout something newly writen in the code than starting it in the emulator?
I'm wondering because I m running on 8gb ram and q9550 (quadcore) and it takes some time (let's say 20secs) to upload and start the apk and now
I'm wondering if this really is the only way to test since it requires huge amount of time, especially when I'm trying something new which doesn't work and thus I'm always gotta run it like this let's say like 20 times until I figure out what's wrong with my code...
You can connect your android phone using USB debugging mode and debug your code. If you can't do that, you can export an apk file (which is quick) and use dropbox/gmail to send it to your phone. I am not a big fan of emulator :)
Here's how to enable usb debugging
http://www.groovypost.com/howto/mobile/how-to-enable-usb-debugging-android-phone/
I would recommend running on your device rather than the emulator.
http://developer.android.com/tools/device.html
In short:
Turn on "USB Debugging" on your device.
On the device, go to Settings > Applications > Development and enable USB debugging (on an Android 4.0 device, the setting is located in Settings > Developer options).
Set up your system to detect your device.
If you're developing on Windows, you need to install a USB driver for adb. For an installation guide and links to OEM drivers, see the OEM USB Drivers document.
If you're developing on Mac OS X, it just works. Skip this step.
If you're developing on Ubuntu Linux, there is a detailed guide in the link above.
Now in eclipse, your device should be available to run on.
In the eclipse toolkit, you have the option to run it directly on a device. It's rather quick to do so.
Enable USB debugging as well as installation of apk from sources other than the market. Then assuming you have already setup the required drivers/settings to connect to your phone via ADB, you should be able to run it on the device and debug. In the run dialog, it will list all available devices and you can simply select the one you want to use.
If you already have a run entry (i.e. you've already run your application),
select your project
click Run -> Run Configuration
You should be in your application run configuration (on the left under Android Application -> Your_App).
In the Target tab, you should be able to select your device. It will likely already be in "Automatically pick compatible device...". On my setup, it will run directly on my phone if it's the only available device. You can select Always prompt to pick device which will let you choose every time.
Eclipse plugin (ADT) information: http://developer.android.com/tools/help/adt.html
Information about setting up your device: http://developer.android.com/tools/device.html
I know android emulator is too slow.
You can either use device or
try bluestacks it saves lots of time.
User device only when you want to test your app for particular device.
Here is what you are looking for :
http://developer.android.com/tools/device.html
To summarize:
Plug your phone to your computer with a USB cable.
Make sure the drivers are installed and your phone properly connected.
Make a Ctrl + F11 from eclipse.
It will build the apk, transfer it to your phone and then launch it automatically.
If you have unit tests, Robolectric lets you run them without using the emulator or the device.
you can download bluestacks as emulator, as it is really fast.
after then make settings in eclipse as window->preferences->android->build -> then uncheck the 3rd checkbox written as "skip packaging and...", then apply and restart the eclipse to take effect.
now open the bluestacks in background and just double click the apk file in bin folder of eclipse and bluestack will install it in 2 to 3 secs and you can directly see the result.
NOTE here that you have to only save the file ,you working on in eclipse and only double click on apk, and result will directly appears to bluestacks. Without uninstalling and reinstalling apk in bluestacks.
and you can delete your apk also, it automatically immediately create
a fresh version of apk (thus not required) as soon as you save all your files apk will be updated.
Google BlueStacks.
It runs on Windows and it's really fast.