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

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

Open
fcaldarelli opened this issue Jan 19, 2023 · 5 comments

Comments

@fcaldarelli
Copy link

fcaldarelli commented Jan 19, 2023

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 fcaldarelli changed the title react-native-hms-push, react-native-hms-location : AAPT: error: resource android:attr/lStar not found. react-native-hms-push : AAPT: error: resource android:attr/lStar not found. Jan 19, 2023
fcaldarelli added a commit to fcaldarelli/hms-react-native-plugin that referenced this issue Jan 19, 2023
@lylong90
Copy link

lylong90 commented Feb 5, 2023

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
Copy link
Author

@lylong90 what error do you receive?

@lylong90
Copy link

lylong90 commented Feb 7, 2023

@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
Copy link
Author

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

You should update your project and hms package

@burkaslarry
Copy link

any updates so far?

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

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

3 participants