Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mmx233 opened this issue Aug 31, 2022 · 10 comments

Comments

@Mmx233
Copy link

Mmx233 commented Aug 31, 2022

"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

@Mmx233 Mmx233 changed the title Error occur while building product version: resource android:attr/lStar not found. Error occur while building product release: resource android:attr/lStar not found. Aug 31, 2022
@Mmx233 Mmx233 changed the title Error occur while building product release: resource android:attr/lStar not found. Error occur while building production release: resource android:attr/lStar not found. Aug 31, 2022
@UmarFarooqCA
Copy link

Same error after upgrading the react-native.

@harshit-codesmith
Copy link

harshit-codesmith commented Oct 4, 2022

@UmarFarooqCA @Mmx233 Try building the app from Android Studio, this worked for me

@romitkarmakar
Copy link

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

@bsor-dev
Copy link

Got same issue

@moh3n9595
Copy link

Same issue

@n-ii-ma
Copy link

n-ii-ma commented Nov 19, 2022

Same issue is happening for me.

@amirvatani
Copy link

Same here

@ahammedmishal
Copy link

same here

1 similar comment
@fzerman
Copy link

fzerman commented Aug 2, 2023

same here

@diegods-ferreira
Copy link

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests