b8ne / react-native-pusher-push-notifications

Manage pusher interest subscriptions and notification events in Javascript.
MIT License
98 stars 86 forks source link

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

Open zhankit opened 1 year ago

zhankit commented 1 year ago

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"
        }
Hajarat commented 1 year ago

Were you able to solve this?

yishin commented 1 year ago

+1

yishin commented 1 year ago

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

SergeyMelnyk commented 7 months ago

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