react-native-foreground-service
react-native-foreground-service copied to clipboard
Error occur while building production release: resource android:attr/lStar not found.
"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
Same error after upgrading the react-native
.
@UmarFarooqCA @Mmx233 Try building the app from Android Studio, this worked for me
Please fix this issue, the same issue is also coming up in our application
Got same issue
Same issue
Same issue is happening for me.
Same here
same here
same here
Same here