react-native-foreground-service icon indicating copy to clipboard operation
react-native-foreground-service copied to clipboard

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

Open Mmx233 opened this issue 2 years ago • 10 comments

"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 avatar Aug 31 '22 02:08 Mmx233

Same error after upgrading the react-native.

UmarFarooqCA avatar Sep 01 '22 15:09 UmarFarooqCA

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

harshit-codesmith avatar Oct 04 '22 11:10 harshit-codesmith

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

romitkarmakar avatar Oct 15 '22 16:10 romitkarmakar

Got same issue

bsor-dev avatar Nov 11 '22 20:11 bsor-dev

Same issue

moh3n9595 avatar Nov 16 '22 20:11 moh3n9595

Same issue is happening for me.

n-ii-ma avatar Nov 19 '22 08:11 n-ii-ma

Same here

amirvatani avatar Dec 09 '22 07:12 amirvatani

same here

ahammedmishal avatar Mar 14 '23 17:03 ahammedmishal

same here

fzerman avatar Aug 02 '23 22:08 fzerman

Same here

diegods-ferreira avatar Sep 04 '23 15:09 diegods-ferreira