-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Migrating to the AppCompat Library
Android Studio v3.4.1 and higher will now start forcing AndroidX namespaces. See this document for migrating libraries and imports.
The AppCompat library enables the use of the ActionBar and Material Design specific implementations such as Toolbar on devices running Android 5.0 (API level 21) or higher.
Caution: The current androidx.appcompat:appcompat:1.7.x stable release requires a minSdkVersion of 21 (Android 5.0). The 1.8.0 alpha line moves the default minSdk to API 23 (Android 6.0) — see the AppCompat release notes for the canonical version table.
android {
compileSdk 36
}
dependencies {
// See https://developer.android.com/jetpack/androidx/releases/appcompat
implementation 'androidx.appcompat:appcompat:1.7.1'
}- http://www.androidauthority.com/goodbye-menu-button-hello-action-bar-48312/
- http://android-developers.blogspot.in/2013/08/actionbarcompat-and-io-2013-app-source.html
- http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html
- https://chris.banes.me/2015/04/22/support-libraries-v22-1-0/
Created by CodePath with much help from the community. Contributed content licensed under cc-wiki with attribution required. You are free to remix and reuse, as long as you attribute and use a similar license.
Finding these guides helpful?
We need help from the broader community to improve these guides, add new topics and keep the topics up-to-date. See our contribution guidelines here and our topic issues list for great ways to help out.
Check these same guides through our standalone viewer for a better browsing experience and an improved search. Follow us on twitter @codepath for access to more useful Android development resources.