react-native-pusher-push-notifications
react-native-pusher-push-notifications copied to clipboard
AAPT: error: resource android:attr/lStar not found
I have encountered the following errors when running with Fastlane gradle(task: "assemble", build_type: 'Release')
. I have no problem when compiling the lab bundle or from android studio.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':react-native-pusher-push-notifications:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR:/Users/Ding/Documents/GitHub/mobile-app/node_modules/react-native-pusher-push-notifications/android/build/intermediates/merged_res/release/values/values.xml:2764: AAPT: error: resource android:attr/lStar not found.
This is the build.gradle configuration.
buildToolsVersion = "31.0.0"
minSdkVersion = 24
compileSdkVersion = 33
targetSdkVersion = 33
kotlinVersion = '1.6.10'
if (System.properties['os.arch'] == "aarch64") {
// For M1 Users we need to use the NDK 24 which added support for aarch64
ndkVersion = "24.0.8215888"
} else {
// Otherwise we default to the side-by-side NDK version from AGP.
ndkVersion = "21.4.7075529"
}
Were you able to solve this?
+1
I was just change compileSdkVersion 28 to 31 in pusher build.gradle file. Error is solved.
fixed this issue by replace ./gradlew assembleRelease by ./gradlew app:assembleRelease