I'm new to develop an android application based on API 10 (android 2.3.3), I want to add action bar in my application but API 10 don't support it. So I'm using ActionBarSherlock 4.0.0 to add action bar.
ActionBarSherlock v4.0.0 support at least api level 14 (sdk 4.0), so I set the projet build target for API 14 and targetsdkversion = 15
Now I want to create my new android project (using API 10 for runing on Android 2.3.3)
which "target SDK" and "compile with" should I choose? Thanks
It doesn't matter what targetSdk you use(I recommend API 17 though), you just have to build it with at least API 14.
Related
Is each Android Studio API level a cumulative of previous levels PLUS new features for newer devices?
Example:
Level 22 (Android 5, Lollipop)
Level 23 (Android 6, Marshmellow)
Level ...
Level 29 (Android 10)
Level 30 (Android 11)
Level 31
Level 31 is for the new Android 12.0, but does Level 31 also include everything that preceded it, Levels 22-30? Can I just load Level 31 and assume Android 5.1 thru Android 11 are supported from the Level 31 API? Or must I still add Levels 22-30 to my project in order to support all those previous Android versions?
My understanding is that I must still load Levels 22-30, but I have never had clarity on the topic.
If you want API for an emulator, you are right, you have to add API Levels 22-30 individually from AVD manager to use those Android versions. But if you want your app to be compatible with Android devices from API 22 to 31 you just need to add SDK from SDK manager-> SDK Platforms and select API level 22 and 31 then just add minSdkVersion level 22 and targetSdkVersion level 31 in your build.gradle (Module) file.
I am building an android app with Meteor/Cordova. My meteor is currently version 1.5, Cordova 4.3.0. My default build uses API 25 but when I try to submit my APK to the play store, I get this message:
Your app currently targets API level 25 and must target at least API level 26 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 26
.
How do I upgrade to API level 26?
inside mobile-config.js add
App.setPreference('android-targetSdkVersion', '26');
Go to gradle, and search for targetSdkVersion = 25 . Change it to use android targetSdkVersion = 26
I want to know what is the "android:minSdkVersion" and the "android:targetSdkVersion=" to use my android app on mobile-phone with Android version 4.0 .
Target Should always be the latest that you have installed on your PC . ie: 22.
Minimum would be 14.
The API 14 is the one related to Android 4.0. So you could put targetSdk to 14. The minSdkVersion is the minimal android API that will be allowed to install your app so for more users, the lower the better !
Still, if you set targetSdk to higher API, like 22, your Android 4.0 device will be able to installyour app.
I'm very new to Android development and this is one of my first projects. I realized that my API Level is set to 20 when datepicker gave an "exception rasied during rendering" error.
I wanted to change the API level to 19 as the API 20 is set to wearable devices. I have installed the API 19 SDK but it doesnt appear for selection during development.
I have also tried to set -
minSdkVersion 10
targetSdkVersion 20
on build gradle but it doesn't work.
I cannot run the emulator as the API is set to 20 and it will display error on a watch :(
How do I set make the API 19 as one of the options during development as I already installed the SDK?
Set
compileSdkVersion 19
in your build.gradle.
minSdkVersion and targetSdkVersion control app installation and runtime backwards compatibility modes, not the SDK you build with.
I'm making an android project, pretty much i'm a noob, i need to make a project which will support the latest version too, but should be compatible with at least 2.3.3 version of android, but when i set my target to 2.3.3, compile with 2.3.3 and minimum to 2.3.3, now when i got to create a blank activity, it says minimum api level 14 required, how to achieve that or i can't make projects for api level below 14, i'm including images to explain it better
is there anyway i can achieve what i want to achieve?
Why are you getting this error message?
The template which you are trying to include in your application uses features (like the actionbar) that requires an API level higher than 14, in the first step of the wizard, you selected 10 and it's < 14 and that's why you are getting this error message.
Resolution:
As you want to develop an application with 2.3 compatibility, select below configurations:
Minimum required SDK: API 10 (2.3.3)
Target SDK: Select any of the platform >= 4.0
Compile with: Select any of the platform >= 4.0
you should set your Min SDK to API 10 and your target SDK to latest android API (currently 19).
set these in your manifest file:
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19"/>