Genymotion and Android Wear emulator try to connect all the time - android

I have a problem pairing Genymotion and Android Wear emulator. I followed this tutorial:
Install Android Wear emulator (api 22) and Genymotion (api 19).
Install Android Wear and Android Wear Preview on Genymotion.
adb -s [dev name] forward tcp:5601 tcp:5601
Open Android Wear Preview and try to connect, but the application is disconnecting all the time and trying again, like this post.
Open another instance of Android Wear, the same happens.
Download the new Genymotion emulator api 22, the same happens.
What could be the problem?

I've spent like 3 hours trying to solve this issue and finally I managed to connect the Android Wear emulator with a Genymotion Google Nexus 4, 5.0.0 API 21 using Android Wear, as suggested in the post you're referring, though I had to download the apk on my computer from here and then drag and drop on the emulator, because Google Services says any Genymotion emulator to be not compatible with Android Wear when trying to install it.
So in the end it's working correctly, but I don't know the reason of Android Wear Preview's malfunctionning, Aaron D. Sorry.

Related

Why Android studio won't run app on Android Pie (9.0)?

I've upgraded my Google Pixel to Android 9.0/Pie.
When I try to run an application from Android studio I don't see the Google Pixel in the list, there's only a null device named FA69R0306649. When I run my application, Android studio tries to install the app but then fails.
It looks like Android Studio is not recognizing the phone anymore. It Worked perfectly fine a couple of hours ago under Oreo (8.x).
Also, if I deploy the app on google play as alpha and then download it runs perfectly under 9.0/Pie.
Any suggestions to get the run/debug working with android 9.0 phone under Android Studio (3.1.4)?
The Pixel running 9.0 requires USB 2.0 high speed.
Apparently the Pixel running Android Pie cannot talk to the PC using neither USB 3.0 nor USB 1.1 full speed nor USB 2.0 running at full speed.
I had a similar problem with my Xiaomi Mi A1. When I upgraded from Android 8.1 to 9 Android Studio would hang on "Installing application" forever.
After trying revoking USB debugging authorization and completely reenabling developer options with no success it turned out a simple restart did it.
Looks like there are multiple issues that lead to the same problem.
I had the same issue with a Xiaomi Mi A2 after upgrading to Android 9. If you are using Linux, try adding the udev permissions manually, following the steps described here. In my case, that was the only solution that worked.
Please re-enable developer options again after the OS version upgrade, the device name will appear and it will be working fine again
Install Sdk Platforms of Android 9. In Android studio Top Right besides Search Icon.Press That Icon of SDK manager and look either sdk platform is updated and installed.
A simple solution just go to your Developer option on your phone , right below the USB Debugging option it says to "install via USB" just enable it and you are all set to install an app through android studio into your 9.0 device.

Trying to Emulate KitKat in Android Studio

I am trying to debug an app (with min. API 10) that runs fine on a real device running Nougat (API 24) but the app crashes during specific tasks on a real device running KitKat (API 19).
I use Android Studio.
I want to emulate a device running API 19 to understand what is making the app crash, using the bugger in Android Studio.
I created several new virtual devices in the Android Virtual Device Manager and selected the KitKat system image (API19) (Android 4.4.4) (google APIs), but when I launch the emulator for these devices, the emulator crashes after showing the Android logo. And I cannot reach the home screen.
I have no problem running API25 on emulated Nexus 5 or 6.
Where should I start looking to fix my issue ?
Thanks
Ensure you are using the latest x86 Google APIs system images from the SDK Manager as well as the latest Android Emulator. As of writing this, it should be revision 29 for the API 19 system image (see screen shot):
Revision 29, should work:
To further troubleshoot, you can run the emulator from the command line to see any error output. To to this, run the following commands from your Android SDK location, as indicated in the Android Studio SDK Manager window.
$ ./tools/bin/avdmanager list avd (this will list all AVDs on your machine, identify the API 19 AVD that you want to run and note the "Name:" field.
$ ./emulator/emulator -avd Nexus_5_API_19 (with Nexus_5_API_19 being the name of your AVD on your machine.)
Note any error messages. If you find an error with the emulator, you can file a bug here: https://developer.android.com/studio/report-bugs.html

Emulator won't boot in Eclipse? Issue using real Android device for code?

I'm new to Android programming, and none of my emulators work. They load, but freeze while booting up. Any ideas? My program is for 2.3.3, and I actually own an Android device, and is running 2.3.6, but when I try to load it for my phone, it says that there are "no compatible devices". Help?
Edit: Using Windows 8, and have already installed Google USB Driver.

Android Studio doesn't see my ZTE Blade III device

Recently I got my first Android smartphone - ZTE Blade III and want to start learning it. I've downloaded Android Studio for Windows, created basic "Hello World" app, tried to run it on the phone and here I encountered a problem - Adroid Studio doesn't see my device.
http://i.imgur.com/mpSciXz.jpg
I followed this guide. I installed ZTE USB driver, enabled USB debugging on my phone and set targetSdkVersion to match Android version of device (I have Android 4.0.4, so I set it to 15), but Android Studio still doesn't see the device.
Any suggestions?
Have you opened up the: /path/to/android/sdk/tools/android Android SDK download tool and installed "Google USB Driver" under the "Extras" folder? (Required for Windows. Screenshot from Linux computer)
I found the solution.
I had to enable Windows Update and set Windows auto driver download function to always on, like in this guide: http://zteblade3.com/zte-blade-3-install-a-custom-jelly-bean-rom-ics-rom-from-scratch/install-the-usb-drivers/

Android app not running on emulator nor real device

I've installed eclipse (JUNO version), SDK, ADT (20.0.3) and configured them through the Developer.android.com. After that I made a virtual device on eclipse (Android 4.1 API level 16) as well, but when I run the "Hello World" application in eclipse, the emulator is running with out error but the app is not running on the emulator.
There is also the problem with real device. I use Windows 7/64 bit and HTC incredible S phone. When I connect the device to my pc, windows detect it, but eclipse does not detect it. (The USB Debugging is enable on device and USB driver is updated on windows).
I tried different solutions like reinstalling eclpise, SDK and ADT, removing ADV and creating the new one,... but the problem did not solve.
Did u located your android sdk? If not,locate the sdk as follows:
open Eclipse->Windows->preferences->Android->Select your android sdk folder.
then please try to run you program. Tell me the status after that.

Categories

Resources