Updated 11 days ago | GitHub

Migrating to the AppCompat Library

Overview

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 6.0 (API level 23) or higher.

Caution: The current androidx.appcompat:appcompat:1.8.0 stable release (August 12, 2026) requires a minSdkVersion of 23 (Android 6.0); the 1.8.0 line moved the default minSdk up from API 21. Apps that still need to support API 21–22 must stay on the 1.7.x line (latest 1.7.1). 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.8.0'
}

References