ERROR: "The selected device is incompatible" in Android HTC device - java

I am absolutly new in Android development (I am a Java EE developer) and this is the first time that I use Android Studio.
So I am finding some difficulties to run my HelloWorld application on my HTC One phone.
I have installed the driver of my phone on my Windows 8.1 system (it should be ok because I can correctly see my phone into the Windows Device Manager).
So I open my app into Android Studio and then click on the start button and then I can choose perform the application on my phone but then I obtain the following error message:
The selected device is incompatible
Here a screenshot of the problem:
Why? What is the problem? How is it possibile that my Htc One is incompatible with Android Studio? How can I fix this issue?
Another problem is that if I chose Launch Emulator instead my phisical phone I have not a virtual device. Is is something that have I to instal separatly or what?

Sometimes reasons may be your device is not recognized by Android Studio.
For this to happen do the following:
Settings -> Developer Options -> Revoke USB debugging authorizations.
Select OK and disconnect your phone. Reconnect it, run the app and you should get a popup on your phone asking for authorization with title "Allow this Device..." . Tick the checkbox for future prefrence. and Select Ok.

You have created the app with min SDK version 15 (as mentioned in the snapshot) but your device is working on a lower version of android. You can change the min SDK version from project properties or create a new application project with lower or equal version of android SDK than the android version installed on your device.
The version of SDK, you select, will work on any device having same or higher version of android OS installed.
Gingerbread (version 10) will work on ~90% of the devices.

It seems the minSdkVersion defined in the grade file of your project is higher than the api version of your phone. So you should change minSdkVersion.You can only start a virtual device, if you have previously downloaded a system image and configured the device with AVD Manager.

Related

Android studio not recognizing USB Emulator

I'm having ENOURMOUS issues with android studio. If it's not rendering issues it's the emulator. (btw Must I have internet connection to use that IDE ? Must I only use SDK setting of SDK actually installed on my machine))
My current problem is that I followed this hello world tutorial https://developer.android.com/training/basics/firstapp/index.html
Then this http://developer.android.com/tools/device.html
My cellphone is ALCATEL TOUCH M'POP 5020D. I want to use it to run my app. So I have enabled it's debugging mode. But Android studio is not detectitng it BUT the phone is in debugging mode. Please what should I do ? Even when I try using an emulator it does not work. (my minimum SDK for the project and emulator is API 19)
Both the emulator and the phone is not working
SDK Extras screenshotS
Try to install the MTK Driver (here is the download link)
And be sure that you enabled development settings and the usb debugging feature under Settings -> About Phone -> Advanced settings.

How to install Google Play Services on 6.0 Genymotion device? [duplicate]

This question already has answers here:
How to install Google Play Services in a Genymotion VM (with no drag and drop support)?
(17 answers)
Closed 5 years ago.
How to install Google Play Services on 6.0 Genymotion device?
For other versions this answer works, but not for 6.0
EDIT:
I've tried to use 6.0 Gapps from this source, but all of them failed to flash the emulator.
Ivan,
I found the solution here and followed the steps from the user #sinistance and it worked for me using the Nexus 5X Preview API 23.
To simplify this is the answer:
what image did you use? i'm using the preview nexus 5x image. here is the steps:
flash Genymotion-ARM-Translation_v1.1.zip then restart.
flash gapps-L-4-21-15.zip.
sign in into your google account.
flash benzo-gapps-M-20151011-signed-chroma-r3.zip then restart.
that's all
You can find all the files in the link above!
I hope it works for you!
Regards
Since Genymotion 2.7.2 and above follow these steps.
https://www.genymotion.com/faq/#google-play-services
Visit opengapps.org
Select x86 as platform
Choose the Android version corresponding to your virtual device
Select nano as variant
Drag & Drop the zip installer in new Genymotion virtual device
Follow the pop-up instructions
On Samsung Galaxy S6 - 6.0.0 - 1440x2560:
Flash Genymotion-ARM-Translation_v1.1
Flash open_gapps-x86-6.0-pico-20160524.zip
Please give it a try.
If Google Play Services on Android 6.0 crash everytime, you can try do the same things in this sequence. Maybe it will work.
Here is what I did:
Install a latest Genymotion (version 2.6.0 in my case). Make sure
the previous old (preview) Android 6.0 images are removed(Genymotion
-> Settings -> Misc -> Clear cache).
Add a new virtualdevice, select Google Nexus 5X and Android 6.0
image. It should download a new image from Genymotion website.Start
created Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 virtual device.
Flash Genymotion-ARM-Translation_v1.1.zip (drag&drop the zip file to
virtual device window) and then restart the virtual device.
Flash gapps-L-4-21-15.zip and restart the virtual device again. Now
add Google account in the virtual device via Settings -> Accounts ->
Add account. Do not start Google Play! Ignore any crashes in sign in
process.
Flash benzo-gapps-M-20151011-signed-chroma-r3.zip and restart the
virtual device. Open Google Play in virtual device,update all
installed applications.
Start Google Now with long touch on home button to force dialog with
request to update Google Play Services. Update Google Play Services.
Now the device is prepared with working Google Play and Google Play
Services.
Genymotion android 6.0 with Google play service
For me it worked just to install a package (in my case the full) for x86 and Android Version 6.0 from http://opengapps.org/ by dragging the downloaded zip-file to the machine. A restart was suggested and done
Maybe some Apps won't work but you don't have to do anything else.
I hope I could help you with that answer.
For enable Google play service in genymotion marshmallow version
Download and install Install ARM Translation from here : http://filetrip.net/dl?4SUOrdcMRv
After installation reboot your device (Just close and restart )
After restart Download the gapps/5.1/gapps-L-4-21-15.zip flash from :
http://mirror31.downloadandroidrom.com/download/gapps/5.1/gapps-L-4-21-15.zip?token=432826691
After installation . reboot the device and update yourgoogle play service and google.
For enable Google play service in genymotion, as per answer you mentioned in your question you need ARM and Gapps.
So, Download gapps for Android Marshmallow from here and follow this answer.

Eclipse : Target "Unknown" in android device chooser

I am using Samsung Galaxy SIV. When I try to select it in the 'Android device chooser', Eclipse recognize as a Samsung Galaxy SIV but in target it does not recognize. It says target "unknown". Because of this problem, I can't choose the phone as the Android device.
How can I get Eclipse to recognize the target ?
For Completeness: (Windows)
1) Enable USB debugging on your device.
On most devices running Android 3.2 or older, you can find the option under Settings > Applications > Development.
On Android 4.0 and newer, it's in Settings > Developer options.
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.
2) Restart your Phone
When you have done this, still there will be "unknown" listed under target, from here, just restart your phone and as soon it is started, it will ask if you want to use this pc for debugging.
The first time your PC tries to connect with your device (after set up OEM USB driver), your device will ask if trust this pc or portal whatever. Make sure your answer yes on your device
In Eclipse, first check your project property. Go to ANDROID tab -> select proper target.
Second in your AndroidManifest.xml file change the "android:minSdkVersion" & "android:targetSdkVersion" to what your android phone supports.
For any future onlookers of this issue, I found that I needed to uncheck the debugger option and recheck it. After doing that, the popup showed for trusting my computer. I said always trust and hit okay and everything worked.

How to create mobile size emulator in Android 3.0?

If i create the emulator for Android 3.0, it opens for tablet size. Is it possible to create emulator for mobile in Android 3.0?
No you cannot, Android 3.0 aka HoneyComb was intended purely as a tablet operating system. From 4.0 onwards i.e. ICS which could support extra large screens (tablets) to phones as well. So if you wish to develop applications for phone, then either use 2.3.3 or 4.0.
Click on Android Virtual Device Manager in Eclipse .Click on New and specify your target .Once you have created an AVD with required specifications.Select it in AVD Manager and click on Start ,this should launch your AVD.Now try installing your app on running AVD.
In New Developer Tools (r21) they given many definitions in AVD Manager

Android device update for G1

I am using android G1 phone and now I have upgraded my SDK to 1.5 and I want to run my application on a physical device, but when I connect my phone to PC I'm able to install my app only when I'm selecting 1.1 SDK but not when selected 1.5 .
So is there any updates required for the device so I can proceed with 1.5 SDK? Also, if possible can you provide with a proper link? That would be great.
An update for your phone will be pushed OTA by your operator, just wait. If it is a dev phone look at HTC pages.
If you're in the US or UK you can find instructions on how to force-upgrade here. I did it on mine and it went fine.

Categories