hms-react-native-plugin icon indicating copy to clipboard operation
hms-react-native-plugin copied to clipboard

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

Open fcaldarelli opened this issue 3 years ago • 5 comments

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

  • Platform: React-Native
  • Kit: Push
  • Kit Version: Push:6.5.0-300
  • OS Version Android SDK 33
  • Android Studio version (if applicable) 2021.3.1 Patch 1
  • Platform version (if applicable)
  • Node Version (if applicable): 16
  • Your Location/Region (if applicable) : Italy

Fix Update compileSdkVersion and targetSdkVersion to 33

fcaldarelli avatar Jan 19 '23 17:01 fcaldarelli

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

lylong90 avatar Feb 05 '23 08:02 lylong90

@lylong90 what error do you receive?

fcaldarelli avatar Feb 06 '23 14:02 fcaldarelli

@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'

lylong90 avatar Feb 07 '23 01:02 lylong90

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

You should update your project and hms package

fcaldarelli avatar Feb 08 '23 15:02 fcaldarelli

any updates so far?

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

burkaslarry avatar Jan 15 '24 02:01 burkaslarry