I cannot start my app since my desires htc device is api level 8 (Android 2.2), what can I do?

In my application I am using this:

private LayoutParams params;

      

And im getting error on it as it needs level 11 api. So in my manifest file, I changed this line from 8 to 11:

<uses-sdk android:minSdkVersion="11" />

      

Now I am not getting any errors in eclipse. But as soon as I try to run the application, I see this Android Device Chooser window, and I see there on my device that the target is 2.2 with a red X next to it. If I click OK and try to run it im getting an error in the console window in Eclipse:

[2013-01-22 09:43:33 - AndroidVideoCapture] ERROR: Application requires API version 11. Device API version is 8 (Android 2.2).
[2013-01-22 09:43:33 - AndroidVideoCapture] Launch canceled!

      

How do I update my device to api 11? I have a pending software update on my device, but every time I press INSTALL it tries to restart, but it actually turns off the device and does nothing, I can remove the batteries and turn the device back on, but then it will ask again this is a software update.

What else can I do? (Didn't find on google where to download api 11 if available).

+3


source to share


6 answers


Well take a look at this to update eclipse to 3.6

http://developer.android.com/tools/sdk/eclipse-adt.html



or change the code of the manifest file as.

    android:minSdkVersion="8"
    android:targetSdkVersion="16" 

      

+1


source


Use unintentional build, I recommend going to XDA Developers.

Here's a link to your phone: http://forum.xda-developers.com/forumdisplay.php?f=628



XDA Developers have a lot of information on how to migrate a device to a newer version of Android.

0


source


API Level 11 - Honeycomb (3.0) or later. Just like with tablets, you will need an ICS-enabled phone (Android 4.0) to test your code on a real device. Since ICS is not officially available for Desire, your best bet is to either buy a new phone or try to install cyanogenmod 9, which is an ICS-based aftermarket firmware.

Alternatively, the support library can be found on Google which allows some of the API functions after 11 (for example Fragments

) to be used for older phones. To do this, you need to reduce the minimum version and install the support library. Check if it is documented for you.

Or, if you don't want to test it on a live device, just use an emulator, as it can emulate all kinds of phones up to Android 4.2 (starting from writing this post).

0


source


  • Use an emulator to run a virtual Android device with 11+ - this is the preferred solution, letting you do whatever you want against AVDs and don't need things like multi-touch or bluetooth

  • go back to mini 8 and find another way to accomplish what you want. It's not a great solution, but sometimes you just have to live with an old code base.

  • Root your desire and install a custom ROM of the desired level. I did it on my Wish, and it's not difficult, but it risks ruining your device. Not the best reason to Root and mod your phone.

0


source


Since the library support was mentioned, I would like to add documentation on how to be backward compatible

http://developer.android.com/training/basics/supporting-devices/platforms.html

basically you just need to have the target SDK version at the level you want to use the API and the minimum SDK version whatever you want to support, however you will need to provide alternative implementation (s) for older platforms or use the supporting library if it provides the required APIs (most of the time it does)

0


source


Its a very simple darling. Your application supports api 11 (Honey Comb) and your phone version is 8 (Froyo). Therefore, you need to update your phone to api 11 (Honey Comb).

OR

Make your application api 8 (Froyo). But some new classes supported by api 11 are not available in it.

I give you one test thing, just try this but not sure if it will work or not (her trick).

Go to your Project Property file and replace target api 8 with just api 11.

Greetings.

0


source







All Articles