dpa99c / cordova-diagnostic-plugin

Cordova/Phonegap plugin to manage device settings
539 stars 361 forks source link

Android Build Error: resource android:attr/lStar not found. #442

Closed drogerie21 closed 3 years ago

drogerie21 commented 3 years ago

Bug report

CHECKLIST

Current behavior:

Since last week we are not able to build android when the diagnostic plugin is included. This error occurs while building:


` Starting a Gradle Daemon (subsequent builds will be faster)

Task :app:processDebugResources FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 17s 22 actionable tasks: 22 executed Command failed with exit code 1: /Users/XXX/cordova-diagnostic-plugin-example/platforms/android/gradlew cdvBuildDebug -b /Users/XXX/cordova-diagnostic-plugin-example/platforms/android/build.gradle `


I tested this in different OS environments and on different machines. It also occurs in your example project. Everwhere we get the same error Expected behavior:

No build error. Steps to reproduce:

cordova build android

Environment information

Android build issue:

Related code:

insert any relevant code here such as plugin API calls / input parameters

Console output

Subproject Path: CordovaLib Subproject Path: app > 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 /Users/XXX/.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 3s 16 actionable tasks: 1 executed, 15 up-to-date Command failed with exit code 1: /Users/XXX/cordova-diagnostic-plugin-example/platforms/android/gradlew cdvBuildDebug -b /Users/XXX/cordova-diagnostic-plugin-example/platforms/android/build.gradle ```
dpa99c commented 3 years ago

Duplicates #440