# AAPT: error: resource android:attr/lStar not found

**Code:** `android:attr/lStar not found` · **Category:** Android · **Seen on:** Android

A dependency (androidx.core 1.7+) uses an attribute from Android 12 (API 31), but your module compiles against an older compileSdk.

## Meaning

Usually a transitive dependency upgraded androidx.core. Raising compileSdk to 31+ fixes it; forcing an older androidx.core is a workaround.

## Common causes

- compileSdk below 31 with androidx.core 1.7+
- Plugin/library module compiled with old compileSdk (Flutter/RN plugins)

## Quick fix

1. Set compileSdk 31+ in all modules
2. Force compileSdk for subprojects in the root build file
3. Pin androidx.core to an older version as a last resort

## Detailed fix by platform

### Gradle

1. 

```kotlin
subprojects {
  afterEvaluate {
    extensions.findByName("android")?.let { (it as com.android.build.gradle.BaseExtension).compileSdkVersion(34) }
  }
}
```


## How to diagnose

1. **compileSdk** — Of the failing module
2. **Dependency** — Which pulls androidx.core?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/android/aapt-lstar-not-found)
