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

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

Open
zhankit opened this issue Mar 22, 2023 · 4 comments
Open

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

zhankit opened this issue Mar 22, 2023 · 4 comments

Comments

@zhankit
Copy link

zhankit commented Mar 22, 2023

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

Hajarat commented May 24, 2023

Were you able to solve this?

@yishin
Copy link

yishin commented Jun 5, 2023

+1

@yishin
Copy link

yishin commented Jun 5, 2023

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

@SergeyMelnyk
Copy link

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

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

4 participants