question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error occur while building production release: resource android:attr/lStar not found.

See original GitHub issue

“react”: “18.0.0”,“react-native”: “0.69.5”

I try to edit voximplant/react-native-foreground-service/android/build.gradle to

android {
    compileSdkVersion 31
    buildToolsVersion "31.0.0"

    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 31
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }
}

and then build successed, but I still don’t know what is happening.

Error:

> Task :voximplant_react-native-foreground-service:compileReleaseJavaWithJavac
娉? D:\projects\WebStorm\clipboard\node_modules\@voximplant\react-native-foreground-service\android\src\main\java\com\voximplant\foregroundservice\NotificationHelper.java浣跨敤鎴栬鐩栦簡宸茶繃鏃剁殑 API銆?
> :voximplant_react-native-foreground-service:verifyReleaseResources                                                                                                                                          娉? 鏈夊叧璇︾粏淇℃伅, 璇蜂娇鐢?-Xlint:dep栬瘧銆?[0K
<
> Task :voximplant_react-native-foreground-service:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.                                                                                                                                                                                                                

* What went wrong:                                                                                                                                                                                                                                      
Execution failed for task ':voximplant_react-native-foreground-service:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:C:\Users\Mmx\.gradle\caches\transforms-3\efc5fbdc5cddabff1e6dbe6ad771c56d\transformed\core-1.7.0\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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

Execution optimizations have been disabled for 2 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.

BUILD FAILED in 23s
193 actionable tasks: 41 executed, 152 up-to-date

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

2reactions
bsor-devcommented, Nov 11, 2022

Got same issue

2reactions
romitkarmakarcommented, Oct 15, 2022

Please fix this issue, the same issue is also coming up in our application

Read more comments on GitHub >

github_iconTop Results From Across the Web

Message "error: resource android:attr/lStar not found"
One major cause for this issue is the Gradle version difference between an added library and the projects build Gradle. This ...
Read more >
resource android:attr/lStar not found build error (Android)
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action > Android resource linking failed ERROR:/ ...
Read more >
error: resource android:attr/lStar not found. [199180389]
Android emulator fails to build our Flutter app without us making any changes to our local codebase or third party libraries, and has...
Read more >
AAPT: error: resource android:attr/lStar not found.
Trying to build for Android 11. ... CommandInvokationFailure: Gradle build failed. ... Note: C:\Users\Admin\Documents\Unity Projects\Android\XXXXX\ ...
Read more >
android resource linking failed flutter
I just found out the solution, queries is a new manifest element and require to use a new gralde android plugin. so change...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found