Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android build not able to fetch the all the "VERSION_CODES" available

Currently i am working on an android, i am using eclipse tool. As i wanted to get list of all the android version_Codes available for the project. but currently my tool/eclipse only shows version_codes till Froyo. I have added the minimum android sdk value to 8 and target sdk value is 17 I have Below is my Androidmanifest.xml and project code i am trying to implement the code

   Java file
int FROYO = android.os.Build.VERSION_CODES.FROYO;
int JELLYBEAN = android.os.Build.VERSION_CODES.JELLY_BEAN;

 Part of Androidmanifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.Android.Afaria" android:versionCode="50" android:sharedUserId="com.afaria.client" 
xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="6.60.6172">
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" />

Here in java file eclipse autosuggest is not suggesting any version code above FROYO.enter image description here

like image 617
cryptonkid Avatar asked Nov 04 '22 04:11

cryptonkid


1 Answers

Right click on your project. go to Properties > android > and select Jelly bean as your target build.

Wait a few seconds or do a Project> clean and it should be fixed.

like image 146
ANemati Avatar answered Nov 09 '22 04:11

ANemati