react-native-pusher-push-notifications icon indicating copy to clipboard operation
react-native-pusher-push-notifications copied to clipboard

AAPT: error: resource android:attr/lStar not found

Open zhankit opened this issue 1 year ago • 4 comments

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"
        }

zhankit avatar Mar 22 '23 16:03 zhankit

Were you able to solve this?

Hajarat avatar May 24 '23 06:05 Hajarat

+1

yishin avatar Jun 05 '23 04:06 yishin

I was just change compileSdkVersion 28 to 31 in pusher build.gradle file. Error is solved.

yishin avatar Jun 05 '23 12:06 yishin

fixed this issue by replace ./gradlew assembleRelease by ./gradlew app:assembleRelease

SergeyMelnyk avatar Feb 08 '24 07:02 SergeyMelnyk