How to find newest support libary version for target SDK? - android

I am compiling for SDK version 26. How can I find out what are the newest support libary versions for the target version?

In the official doc you can find all the releases.
Otherwise you can browse the new google maven repo.

You can always use + to use latest version like:
compile 'com.android.support:appcompat-v7:26.+'
It will use the highest version that starts with 26.

Related

Which Android versions support Snackbars?

The android.com site about snackbars (https://developer.android.com/reference/android/support/design/widget/Snackbar.html) says: added in version 22.2.0
So do I need to check for Api 22 or 23?
You need to add support for Snackbar in the gradle to work for lower APIs.
Add the following in dependencies of gradle and sync it:
compile 'com.android.support:design:22.2.0'
You do not need to check for version.
The Android Design Support Library supports it for Android 2.1 and higher (API 7).

How to identify Android Support Library versions in gradle?

Whenever a new Android Support Repository is released, I have to update my dependencies in the app Gradle file.
dependencies {
compile 'com.android.support:support-v4:25.1.1'
}
However, I don't get much of a clue as to what version to add i.e.: 25.1.1 with every release unless I go and check the Recent Support Revisions.
The version shown in the Android SDK Manager: Android Support Repository, revision 44.
I want to know how to get the right version given the revision number of the Android Support Repository during updates.
All other version such as Build tools show the right corresponding versions, only this one stumps me.
You can use the latest.release suffix in for your libraries like this:
compile 'com.android.support:support-v4:latest.release'
It will insure you are always using the latest release version.
The revision number isn't really that important.
The support library major version should match the compileSdk.

How to get Android Support library 20 revision in sdk

I'm using Android Studio. Everything was going good but I updated Android support library to 22 revision and my application UI is changed and In some Activities app is crash.
I want to downgrade the version of Android support library from 22 revision to 20 revision in SDK so I uninstalled Android support library but when I install it every time 22 revision is installed.
How can I install 20 revision of Android support library?
You can check inside the sdk folder in your pc.
androidsdk\extras\android\m2repository\com\android\support
For each support library you will find all versions available.
compile 'com.android.support:support-v4:19.1.0'
compile 'com.android.support:support-v4:20.0.0'
compile 'com.android.support:support-v4:21.0.3'
Pay attention.
If you use the v20+, you have to use the api 21+ to compile your project.
In your app's module there is a build.gradle file. Inside that you will see something like:
compile 'com.android.support:support-v4:xx.x.x'
This is how you dictate which support library is used when compiling the app. You will need to have the version you choose installed in your SDK manager.

Android v7 version 19.1.0 Support Library Direct Link

I am trying to Download the v7 app compat support library version 19.1.0. The current version of the library is 21.something. However, this requires lolipop as the compile sdk and an update to the build tool. We do not want to make these changes. Also we are using ant and not gradle. Hence, Need a direct download link to the 19.1 version of the support libraries.
Thanks
These can be downloaded from the Github account.
https://github.com/android/platform_frameworks_support/tree/master
You specifically want 19.1.0 which is located here:
https://github.com/android/platform_frameworks_support/tree/l-preview

Why i can't compile my android project with other APIs

i want to build an android project for API 19 so i choose this API to compile with, but when eclipse create the projects its tells me that some ressources are not found and the R class is not generated. the only way to avoid this errors is to compile with API21
So why i can not use my API 19 in compilation ??
THNKS for all
Compile SDK Version can and should always be set to the latest SDK released. It is target SDK version that you should set to the latest version you've tested your app on.
Eclipse by default includes AppCompat - the part of the Support Library which ensures a consistent look and feel across all API versions v7+ and the newest version, revision 21, compiles against API 21.
So why i can not use my API 19 in compilation ?
be sure to have the api installed:
Window -> Android SDK Manager

Categories

Resources