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.
zhb94
October 1, 2021, 11:39am
2
having same issue… found any solution?
Midi86
October 1, 2021, 11:50am
3
The solution posted here solved my problem:
opened 11:11AM - 30 Sep 21 UTC
closed 10:06AM - 01 Oct 21 UTC
While building apk we are facing this issue -- AAPT: error: resource android:a… ttr/lStar not found
All new project and old project
Execution failed for task ':app:processDebugResources'.
FAILED
> Android resource linking failed
C:\Users\kamlesh\.gradle\caches\transforms-1\files-1.1\appcompat-1.4.0-beta01.aar\97b333eeae39b4b443d1c2079f33a72e\res\values\values.xml:2422:5-2449:25: AAPT: error: resource android:attr/lStar not found.
error: failed linking references.
* 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 34s
23 actionable tasks: 21 executed, 2 up-to-date
D:\ionic\carworld\platforms\android\gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
C:\Users\kamlesh\.gradle\caches\transforms-1\files-1.1\appcompat-1.4.0-beta01.aar\97b333eeae39b4b443d1c2079f33a72e\res\values\values.xml:2422:5-2449:25: AAPT: error: resource android:attr/lStar not found.
error: failed linking references.
* 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 34s
<!--
IMPORTANT: PLEASE READ
WARNING: Failure to follow the issue template guidelines below will result in the issue being immediately closed.
-->
# Bug report
**CHECKLIST**
- [x] I have read the [issue reporting guidelines](https://github.com/dpa99c/cordova-diagnostic-plugin#reporting-issues)
- [x] I confirm this is a suspected bug or issue that will affect other users
- [x] I have reproduced the issue using the [example project](https://github.com/dpa99c/cordova-diagnostic-plugin-example) or provided the necessary information to reproduce the issue.
- [x] I have read [the documentation](https://github.com/dpa99c/cordova-diagnostic-plugin) thoroughly and it does not help solve my issue.
- [x] I have checked that no similar issues (open or closed) already exist.
**Current behavior:**
<!-- Explain how you're sure there is an issue with this plugin rather than your own code:
- If this plugin has an example project, have you been able to reproduce the issue within it?
- Have you created a clean test Cordova project containing only this plugin to eliminate the potential for interference with other plugins/code?
-->
**Expected behavior:**
**Steps to reproduce:**
**Screenshots**
**Environment information**
- Cordova CLI version
- `cordova -v`
- Cordova platform version
- `cordova platform ls`
- Plugins & versions installed in project (including this plugin)
- `cordova plugin ls`
- Dev machine OS and version, e.g.
- OSX
- `sw_vers`
- Windows 10
- `winver`
_Runtime issue_
- Device details
- _e.g. iPhone X, Samsung Galaxy S8, iPhone X Simulator, Pixel XL Emulator_
- OS details
- _e.g. iOS 12.2, Android 9.0_
_Android build issue:_
- Node JS version
- `node -v`
- Gradle version
- `ls platforms/android/.gradle`
- Target Android SDK version
- `android:targetSdkVersion` in `AndroidManifest.xml`
- Android SDK details
- `sdkmanager --list | sed -e '/Available Packages/q'`
_iOS build issue:_
- Node JS version
- `node -v`
- XCode version
**Related code:**
```
insert any relevant code here such as plugin API calls / input parameters
```
**Console output**
<details>
<summary>console output</summary>
```
// Paste any relevant JS/native console output here
```
</details><br/><br/>
**Other information:**
<!--
A POLITE REMINDER
- This is free, open-source software.
- Although the author makes every effort to maintain it, no guarantees are made as to the quality or reliability, and reported issues will be addressed if and when the author has time.
- Help/support will not be given by the author, so forums (e.g. Ionic) or Stack Overflow should be used. Any issues requesting help/support will be closed immediately.
- If you have urgent need of a bug fix/feature, the author can be engaged for PAID contract work to do so: please contact dave@workingedge.co.uk
- Rude or abusive comments/issues will not be tolerated, nor will opening multiple issues if those previously closed are deemed unsuitable. Any of the above will result in you being BANNED from ALL of my Github repositories.
-->
2 Likes
ajitG
October 5, 2021, 1:19pm
5
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
fmoalla
November 24, 2021, 3:33pm
9
I tried many solutions but no one worked in my case, can you tell me how you solved it .
fmoalla
November 26, 2021, 9:49am
10
Did you find a solution ?