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

This error is coming when building android

ionic cordova build android

Error:

> Task :app:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     C:\Users\haroo\.gradle\caches\transforms-2\files-2.1\082fd8435f96aa3f026dd001121230f9\core-1.7.0-beta02\res\values\values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 12s

ionic info:

Ionic:

   Ionic CLI                     : 6.17.1 (C:\Users\haroo\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 5.8.1
   @angular-devkit/build-angular : 12.1.4
   @angular-devkit/schematics    : 12.2.7
   @angular/cli                  : 12.2.7
   @ionic/angular-toolkit        : 4.0.0

Cordova:

   Cordova CLI       : 10.0.0
   Cordova Platforms : android 9.1.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 14 other plugins)

Utility:

   cordova-res : 0.15.3
   native-run  : 1.4.1

System:

   Android SDK Tools : 26.1.1 (C:\Users\haroo\AppData\Local\Android\Sdk)
   NodeJS            : v14.17.5 (C:\Program Files\nodejs\node.exe)
   npm               : 6.14.14
   OS                : Windows 10

Thanks.

having same issue… found any solution?

The solution posted here solved my problem:

2 Likes

Hi, I’m not able to resolve this issue i tried below all given solution but still build fail. can anyone help me to resolve issue.

Did anyone found the solution? I am stuck here. Please help.

I am also experiencing this issue, I am using Cordova not Capacitor

I tried many solutions but no one worked in my case, can you tell me how you solved it .

Did you find a solution ?