Flutter AAPT: error: resource android:attr/lStar not found. Solutions

Cause: Some packages use compileSdkVersion:30. In this SDK version, there are no attribute names lStar.

Solutions:

You get a package name in the error message where the attribute lStar is not found. Find the package name. In my case, that was flutter_sound.

Go to external libraries then find the package.

Then go to build.gradle. And change to compileSdkVersion to latest.

And Done…….

0
Subscribe to my newsletter

Read articles from Ratul Hasan Ruhan directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ratul Hasan Ruhan
Ratul Hasan Ruhan

Hey, I'm Ratul Hasan Ruhan—a Flutter enthusiast, mobile app developer, and tech blogger. Let's explore the world of Flutter together! 🚀 #MobileDev