Google USB Package isn't showing in SDK Mananger - android

I recently downloaded and installed Eclipse Java EE IDE: Indigo Service Release 2. I made a simple application that runs well on the emulator; now I want to try and run it on my android mobile device. From the Android Developers site, I followed the instructions to do so until I got to the point where I needed to locate the USB driver folder for the Google USB driver found in sdk\extras\google\usb_driver. I do not have that driver, so I went on to download it. I was told it was found in the SDK manager under "Extras". I proceeded in Eclipse to Window > Android SDK Manger. I waited for it get done fetching and then went to "Extras". Making sure "Updates/New" was checked as well as "Installed"; however, the only thing under the "Extras" tab is "Android Support Package" and nothing else.
And so here I am ... stuck on what I need to do.
Any help would be greatly appreciated.

http://developer.android.com/sdk/oem-usb.html
You can get the USB drivers for most devices from the manufacturer's site listed here.
As far as the Google USB drivers, I would ensure you are running the latest version of the Android SDK tools and to try running the program as admin.

I just noticed that bringing up the SDK manager from within Eclipse will not show the Google USB driver... However, opening it up via the Start Menu will. (Also, run it as Administrator).

I was having a similar issue and I traced my root cause to this error. I forgot to install Google USB driver. This can be done via SDK manager, ie Android studio->File->Settings->Appearance and behavior->System Settings->Android SDK in tab "SDK tools" check the option for "Google USB Driver" and Apply.

I was having a similar issue and I traced my root cause to this error message in the log.
XML verification failed for http://dl-ssl.google.com/android/repository.addon.xml
If this is the case, make sure your JDK/JRE version is 1.6 or greater.
If you are using Windows 7 64 bit, make sure you update your x86 JDK/JRE version as well.

Related

android studio times out installing the app

I have a question about running an app through the emulator on android studio.
My emulator device is able to turn on, but when running the app, install never completes so the app times out. I have tried invalidating cache and restarting, and I have installed the sdk platforms that are the same as the emulators and project, but these changes did not work. My computer cannot install emulator hypervisor driver for AMD processors or intel x86 Emulator accelerator, but I don't think it is necessary for the app to run since my emulator can turn on, right? also, any app has never successfully run on android studio.
The is no code other than the hello world that comes up automatically. This is an empty project with a minimum sdk of api: android 4.1. The device I am using is a pixel 2 with an api of 22. (size on disk 3.5 GB) for tools, I have android SDK build-tools 33, android emulator (31.3.10), and android sdk platform- tools (33.0.3) installed.
I have tried every forum that has the same issue as me but if you think there is one that can help me, please share it thanks.
Android Emulators aren't always the best so expect random failures. This is what I would try:
Make sure the app compiles properly (make sure you see BUILD SUCCESSFUL in your bottom "Build" Tab in Android Studio)
Make sure you have updated Android Studio and Android Emulator, Android Build Tools, SDKs etc.
Create and use a device with a higher API version. Ideally one with Play Store.
Depending on your development machine you might want to try a different architecture (ABI). Try x86 or x86_64 instead of what you've already tried.
In rare cases your existing emulator images get corrupted. Uninstall them in your SDK manager (Show Package Details) and install them again.
If possible try running the app on a real device (follow online instructions to enable USB debugging etc.) to verify the emulator is the problem.

Cannot deploy app to emulator in Android Studio - "unknown avd"

I made a simple hello world app which I would like to deploy to an emulator in Android Studio.
This used to work before for exactly the same project (I installed all necessary packages) but this time for some random reason, in the run options when I select "Target: Emulator", under the "prefer Android virtual device" I get the following in red: "Unknown AVD".
I've googled around and the answers vary. The answer that seems to make the most sense is:
You have to install all Intel Image Library and Google API for your
desired API. Go to your SDK Manager and check intel system images is
installed or not if not then you have to installed it as well install
Google API Library.
However I don't have these "Intel Image libraries" and "Google API" options in SDK manager. Are these shorthand aliases for other names in the options?
Any ideas on how to get the emulator up and running?
A bit of information on my environment:
Android Studio 2.3.3
Windows 7 Professional 64 Bit
Gradle Version: 3.3
Selected SDK Platform Package: Android 7.1.1 (Nougat)/ API Level 25
Revision 3
Virtual Device: Nexus 5X API 25
Try to kill the adb server and restart it.
Locate your adb binary (linux/osx) or adb.exe (windows) and do:
adb kill-server
adb start-server
this should fix your problem
Even if your problem still not solved then Restart emulator.
Locate the adb.exe by going to where your sdk is installed and go into platform-tools. Mine is the default and also the most common (C:/User/$USER$/AppData/Local/Android/sdk/platform-tools/)
After that kill the server and start the server back up. That might fix it, if not drop a comment and let someone know that the problem isn't yet resolved someone may be able to help.
this problem may be related to the version of the gradle file of your application. Try this:
goto Android -> Gradle Scripts -> Build Gradle(Module :app)

Android Studio doesn't show my device in the "Device Chooser" dialog. I don't want to use the emulator

I searched for the answer before asking. They weren't satisfactory.
Environment and what I did so far:
My device is Xiaomi Redmi 2. I have enabled USB Debugging in my device.
My phone uses a Cyanogen mode with 5.1.1 installed ( Lollipop ) and not 4.4 ( Kit-Kat )
It is also connected as a media device as asked in an answer
I'm running android studio on Windows 8.1.
I don't want to change my OS if that's possible.
Minimum level it is set to be API Level 15 so all the devices with ICS will be supported.
Questions:
Do I need to install a driver and if yes, what driver do I need to install to make it work?
If I need it how do I use it?
Where do I get it from?
I have to mention that I am using this site for the first time so I might not know the best way to search.
Any tips on that?
It may just be that the MTP mode isn't supported. Try changing your usb connection to PTP in your device's usb connection settings.
Taken from the Android Studio User Guide.
If you are developing on Windows and would like to connect a device to test your applications, then you need to install the appropriate USB driver.
Find the appropriate driver for your device from the OEM drivers table.
Once you've downloaded your USB driver, follow the instructions to install or upgrade the driver, and whether you're installing for the first time or upgrading an existing driver.
Update your android studio and your android project :
Android Studio > SDK Manager (top right of the ide) > Launch Standalone SDK Manager > uncheck the 'installed' checkbox > make sure you have all the recommended updates, tools and apis installed to your development machine.
Update your android project manifest file (AndroidManifest.xml) on about line 20 usually to match the target SDK version you want to build for :
You have to install ADB USB driver manually
Try the below link
http://visualgdb.com/KB/usbdebug-manual/

HAXM installed successfully, but not recognized by Android Studio 2.1

Intel HAXM installs successfully (according to the log) both through Android Studio and directly from Intel's executable. However, Android Studio 2.1 says "HAXM is not installed" and prompts me to install it in an endless cycle (Not installed, install? Installed successfully. Not installed, install?).
Note: it worked fine in the previous version of Android Studio. Since upon upgrading it didn't recognize HAXM, I tried uninstalling Android Studio and reinstalling 2.1, but it still is not recognizing the HAXM installation.
How can I get Android Studio to understand that Intel HAXM is installed?
This is on Windows 10.
Running "silent_install.bat" or "intelhaxm-android.exe" resulted in a log file stating that Intel HAXM had been installed when it actually hadn't.
I was finally able to install HAXM 6.0.1 by extracting "intelhaxm-android.exe" with 7-zip and running "setup.exe" manually.
Now it's recognized by Android Studio.
please try to install it from here:
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
or try to uncheck >> save HAXM installer in your SDK Manager => and install it again
Run the HAXM installer via the path:
your_sdk_folder\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe
Take a look at this video : https://www.youtube.com/watch?v=Z7xoPCv3sYs
The link to the youtube from mounir elfassi's answer on this problem worked for me in 2021.
https://www.youtube.com/watch?v=Z7xoPCv3sYs
In this tutorial, He go to the HAXM file location where it is already downloaded by android studio and installs it manually.
I tried the same method and my problem was solved.
After trying to install manually by going to file path -
~\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager
Sometimes the HaxmSetup.exe does not install and shows an error"The system requirements are not satisfied".
This error can have multiple reasons,
Hyper-V is enabled.
Virtualisation is disabled.
...
I found the solution here
For my device the virtualization was disabled, and it can be easily checked
by going to task manager and then under performance tab below the CPU utilization graph.
Then you have to enable it by going into BIOS setting of your device. It is different for every device so it is better you search where can you find virtualization settings for your device.
I solved it by:
1- going to my android sdk.
2- open 'extras' file then 'intel then 'Hardware_Accelerated_Execution_Manager'.
3- Finally 'haxm-7.6.5-setup' to setup manually.
this should work will with you as happened with me.

Android SDK and AVD Manager issue

I am trying to follow the procedure Downloading the Google USB Driver but see the following error in Android SDK and AVD Manager:
Some packages were found but are not
compatible updates.
I am unable to Download the Google USB Driver without the Google Add-ons.
Specifically, I need Google Usb Driver package revision 4 for the Nexus S.
I ran Eclipse > Help > Check for updates but this did not resolve the issue.
Does the Android SDK and AVD Manager need to be updated another way? If so, how?
Is there some other way to fix this?
Does Google Usb Driver package revision 4 work in Windows XP?
That is ok. Those are shown so since they are probably not meant for your version of adt. When you update your android development tools again and check for updates you will be updated to the latest and then you may update to the tools for the latest version. You may still have that alert message since there will also be updates that are not compatible with your your version of adt.
I guess you need to download your latest version (zip file )of adt then install this new .zip file in eclipse.
Then you would be getting the enabled option to download Google USB driver for nexus S.
Which version of the JRE are you running? I had this problem, updated Java, fixed it immediately. I think I was running OpenJava 1.5, upgraded to 1.6 and it worked.
Have you tried running the sdk manager in admin mode, has seemed to help me in the past with strange errors
After completely uninstalling and re-installing the SDK I was able to see and install the Google USB driver but still have been unable to connect the debugger. Perhaps Android development on an Atom based XP Net-Book is a bad idea. I've not been able to get the emulator working so I thought it might be better debugging directly on the target. The emulator just locks up this PC. I've waited up to 40 minutes before giving up. I've had no trouble with Android development on my work PC (emulator or target) but I have some personal projects I'd rather not do on company equipment. Oh well, I probably just need a real PC if I want to work at home.
Issue - I had a working Android Studio and USB driver would allow me to connect to my Huawei Honor 6X mobile device. One day the Android Studio stopped detecting the mobile device and reinstalling Huawei drivers, uninstalling and reinstalling drivers did not work. I tried changing cables and it did not work either. My Windows 8 would not detect the phone when I connected it with USB and Studio did not detect the device either.
Various solutions posted at the forums did not work for me. Finally this is what I did to solve the issue. My LG mobile also works with the Android Studio and I believe this solution will work for all mobile devices and not just Huawei device
Solution -
1) Open Tools> Android > SDK Manager > SDK Tools tab
2) Select Show package details check box
3) Is Google USB Driver selected? Select it if it is not selected, apply & Ok.
3) If Google USB Driver is selected, unselect it and SDK manager will remove the USB drivers.
4) Close Android Studio and follow the above theps and select the Google USB Driver and let studio update the driver
5)Close Android Studio Again
6) Go to Device Manager and you should see 'Android Composite ADB Interface' if the driver is successfully installed
7) That is it, now open Android Studio & when you run the application you should see your mobile device under Connected Devices

Categories

Resources