Skip to content

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

@zhankit

Description

@zhankit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions