HMS-Core / hms-react-native-plugin

This repo contains all of React-Native HMS plugins.
https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin?ha_source=hms1
Apache License 2.0
235 stars 67 forks source link

react-native-hms-push : AAPT: error: resource android:attr/lStar not found. #262

Open fcaldarelli opened 1 year ago

fcaldarelli commented 1 year ago

Description Error compiling:

* What went wrong:
Execution failed for task ':hmscore_react-native-hms-push:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:/app/node_modules/@hmscore/react-native-hms-push/android/build/intermediates/merged_res/release/values/values.xml:2731: AAPT: error: resource android:attr/lStar not found.

Expected behavior Compile success

Current behavior Compile error

Environment

Fix Update compileSdkVersion and targetSdkVersion to 33

lylong90 commented 1 year ago

I'm having the same error when running gradlew assembleRelease. I'm using "react-native": "0.71.1" I updated to version 33 but still not working. My config below:

buildToolsVersion = "33.0.0" minSdkVersion = 21 compileSdkVersion = 33 targetSdkVersion = 33

fcaldarelli commented 1 year ago

@lylong90 what error do you receive?

lylong90 commented 1 year ago

@lylong90 what error do you receive?

Sorry, i think i misunderstood. Your suggested fix of updating compileSdkVersion and targetSdkVersion to 33 is intended to be applied to HMS Core package itself, not my own project am I right? What I did is I update the versions to my own project, getting the same error 'resource android:attr/lStar not found'

fcaldarelli commented 1 year ago

@lylong90 what package returns error 'resource android:attr/lStar not found'?

You should update your project and hms package

burkaslarry commented 6 months ago

any updates so far?

It seems not compatible with https://github.com/wix/react-native-notifications 4.3.3