Can't Select Device for debugging - android

I have updated my android version from 4.1.1 to 4.2.2 on google Nexus 7, (Worked Perfect Before)After that unfortunately i can't debug my App anymore,i can see my device on "Android Device Chooser" page but i can't select it, and ok button is not Active. my minsdk version is 12 and in that page written that "Select a device compatible with Target android 3.1"!.i'm developing on Motodev Studio, i'm working on this for hours but i don't know what causes this issue ,any help would be appreciated

According to this post
there were some packages missing, which weren't shown in the Android SDK Manager,so after reload on Sdk manager and installing missing packages my problem had been solved!

Related

Android studio 4.1 emulator crash

I just upgraded my android studio to 4.1 version:
And tried to run some project on this emulator:
And for some reason, this specific emulator is crashing my android studio, I have noticed that I am getting an error:
After reading about the subject, I uninstalled "Riot Vanguard" but it did not solve my problem.
More info (and partially solving the problem ) can be found in "Update" at the bottom of the question.
In addition, moments after my android studio will get closed I will get a windows blue screen (happens every time).
I didn't have this problem earlier with android studio below 4.1 version, why is this happening?
Update (problem solved for others emulators)
I have run into the same problem on other emulators as well, but I could open those emulators so I could fix the problem:
Solution 1
According to most threads that I have run into, You will need to disable or uninstall "Riot Vanguard":
Open task manager, go to the startup tab, right click on Riot Vanguard, and press disable
Solution 2
If step 1 didn't fix the problem you may want to enable developer mode on your emulator.
For some reason with android studio 4.1 android studio could not find the emulator (It will tell you that there are "No connected devices") without enabling the developer mode
Before Android studio 4.1 version I didn't need to enable the developer mode to run projects on emulators and this is what solved the problem for other emulators for me.
BUT
Although I don't have any problems with other emulators at all I still can`t even open Pixel_3a_API_30c68 emulator without it crashing
How can I fix this problem on the specific emulator?
Update 2
The problem still occurs even After updating android studio to 4.1.1
Without having "Riot Vanguard" I also could not run any emulator in Android Studio since I upgraded to version 4.1. After some hours I finally found out what caused the problem (in my case):
"Android SDK Tools" have been replaced by other SDK tools (which ?) and is obsolete now. As soon as I UNINSTALLED "Android SDK Tools" the emulator worked again.
I would be interested to know if the java version makes a different. I moved from Windows to Linux because of problems running the emulator.
Linux worked great until I moved to Android Studio 4.1. So check java and it was version 11. Changed to java8 and it worked straight first time.
Seem to remember there was a setting in Android Studio to set the SDK which I think was version 8. But can no longer find this in settings in Studio 4.1.
Updating to the latest system image of the SDK helped me.

how to enable emulator in android studio?

I've been learning Android studio and android app development for a while now and I've been installing emulator .I recently installed the Nexus 5S API 24 but that showed some emulator errors
enter image description here
And then I thought the problem is with the API and so downloaded an emulator with lower API i.e; NEXUS 4 API 18 and that is also not running showing the same error. I thought the problem is with android Studio and hence I uninstalled the whole Android
Studio and then downloaded it again.But again the same errors show up.
I tried connecting my phone as an emulator instead of downloading an emulator.
But then, something showed up like in the picture below
enter image description here
Mine is a Gionee P7 phone .
Any help on this issue would be helpful .
Open the SDK Tools (Tools> SDK Manager> SDK Tools) to check if you have installed the Intel X86 Accelerator, if not, check the box and apply, then restart your AS, it should work.
Still recommend you to use real device to run your application, since the emulator really cost a lot of memory resources.

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.

Need help regard running my first android app in my mobile?

I'm trying to write my first android app (android studio 2.2). I tried it using the emulator and it works fine. When i connected my Samsung J1 ace running android v 4.4.4 it appears in the "Select Deployment Target" but when i choose it and press ok the following message appears
Why does the android studio want to download android 1?
Any help will be appreciated
please update your SDK From api level 15 to till now

"No compatible targets were found" eclipse adt plugin error

I don't understand...
In my office I installed Eclipse + Android SDK (API 16) + ADT plugin to develop my own app. When I installed it on my Galaxy Tab and Galaxy Nexus nothing happened and it worked fine. But when I installed all of this on my laptop in my house and imported the eclipse project to installed it again on my devices ADT says that message: "No compatible targets were found". Despite it's the same project, i didn't change a thing and the software is the same...
What can be causing this issue? Any ideas?
I have a meeting this wednesday to start selling the app and it would be great if someone could answer me before that day!! xD
Thanks!!
Are the ADB drivers for the phone working/installed on the laptop?
if your using windows check the device manager.
It sounds like you don't have the proper version of the SDK installed on your Eclipse. You need to make sure you have used the 'SDK Manager' to install the proper Android version, that your build is compiling to what you expect (this is set in the AndroidManifest.xml), and that your emulator or device is targeting the version of the OS you are expecting.
My quess is you don't have the proper Android SDK downloaded.

Categories

Resources