Eclipse doesnt seem to like my sdkversion requirements - android

I have in my manifest:
<uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="13"/>
I want to allow 2.2 to run my app but i have to have targetsdkversion 13 for admob to work. But eclipse is saying: " Attribute minSdkVersion (8) is lower than the project target API level (13)" and wont even show the avd's for anything below 3.2... but that didn't happen until just a little while ago. I didnt change anything there. whats happening? i've tried to clean it but that didnt help.

It's just be a warning. If you run your app, it should run on any devices from SDK version 8 to 13. Are you not able to generate the apks, and run it?

I used to see the warning in the older version of eclipse and the ADT, but since moving to Indigo and the newer android plug in I no longer get that, it was just annoying but did not cause any other issues.

Related

AAPT.exe crashes, when trying to support APIs older than 12

What might be the probable cause for the "AAPT.exe has stopped working" error, when it only appears after changing minSdkVersion to something lower than 12?
I had started developing an application, which was targeting API 18 and I decided to support older versions, too. There is nothing useful to update in the Android SDK Manager nor in the Eclipse-plugins. Eclipse isn't giving me any hints about what might be wrong. Naturally, I have tried cleaning the project, but it always ends in showing that error.

Unable to resolve target 'Google Inc.:Google APIs:16'

I experience this problem when I added another project from internet. I think it asks me to use another version of target android. But I want that my app will work in android 2.2.
But it doesn't require API-8, it requires API-16 and I m not sure what I should do.
Modify the AndroidManifest.xml file so that any versions in there are Android 2.2. Also change the version of the SDK used by right clicking the project in eclipse and go to properties->android and change the version to 2.2. Some things might break though. Usually the version declared in the manifest is declared because the project uses SDK features only available for that version or later.
Your app will still work on older versions even if you are targeting newer version. The target is what version you have tested your app to work on. If you target the most recent version (API 16), then your app will not be put in 'compatibility mode' when running on older phones. For example, if you have a menu button in 2.x but you target API 16, this menu button will not show up on certain phones since you're supposed to be using the ActionBar.
The minSdkVersion is what you are thinking of, which will make sure your app runs on older versions:
<uses-sdk android:minSdkVersion="8" />
So the solution to your problem is just to download the newest API level through the SDK Manager. You most likely just don't have API 16 installed.

Android build target

I've been writing my first android app and so far have just been building against the highest android SDK available - 4.1. Up until this point I have only been testing on a physical device running 4.03 and everything seems to work fine.
I would like my min SDK level to be level 8 (2.2) and as far as I know I have not used anything from the APIs higher than this.
However if I build against 4.1 and run on a 2.2 emulator it just shows a white screen and no crash (OpenGL based so something going wrong with this). The same build runs fine on a 4.1 emu and my 4.03 device.
If I build against 2.2 with the exact same code it runs on the 2.2 emu fine.
I don't really know what could be causing this so any tips would be great. Do some classes get replaced in the newer APIs? If they were removed entirely I would assume it just wouldn't build at all against the new version.
Should I be setting my build target equal to my minimum? I am not using anything from the APIs higher than 2.2 currently but I was under the impression I should be building against the newest SDK available. Are there any negative effects of building for the lowest version for instance does it affect the look of the menus/dialogs?
Any help is appreciated, thanks.
You should build against the lowest SDK version you intend to be supported by your app (e.g., if you want to support users don't having the newest smart phones or tablets, building against the newest SDK version wouldn't be a good idea).
Generally, newer SDK versions only include additional classes and functions, but I am not 100% sure about any removed classes.
add this to your AndroidManifest.xml
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="15" />

Eclipse ADT ListView and GridView Rendering is disabled

ADT said that version 11 brings ListView and GridView Rendering, however it's disabled in my eclipse and shows: "not supported for this SDK version; try changing the Render Target".
I tried changing the render target but no help there.
Suggestions?
Ensure, that you have included in android manifest something like that:
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="11" />
targetSdkVersion is parameter determining which API level will be used by your applicaton.
minSdkVersion indicates if device will be able to install your app, but you have to ensure, that all API incompatibilities are handled by you manually in code (i.e. by reflections)
Today i simple update all my environment and Android SDK and it works good when i create Android project on SDK-13 (Android 3.2). SDK-11 and SDK-12 not support it for me.
Try uninstalling, then reinstalling Eclipse. I may be misunderstanding your question, though.

How to change the minSDK Version in eclipse?

While creating a new android project in eclipse 3.5, i have selected Android 2.1 Update1 as build target. But i forgot to give the mini SDK version. Now when the build the project, its giving a warning message "WARNING: Application does not specify an API level requirement!Device API version is 8 (Android 2.2)"
The application is running fine..but when i run that application is my Samsung Galaxy S which is having android 2.1, the application is behaving differently.
I have even tried adding
<uses-sdk minSdkVersion="7" /> in the manifest file..But still i am getting the warning message..
So how can i change the mini SDK of my project in eclipse to 7,so that i get the same result in my emulator and Mobile phone?
Thanks in advance
Shijilal
In your manifest there should be something like this
<uses-sdk android:minSdkVersion="int" />
Now just change the number to the desired version number. Additionally you should also change the value of the target in the default.properties file.

Categories

Resources