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

Error on executing ./gradlew assemblerelease with react-native-masked-view #129

Open
RafikMk opened this issue Jan 9, 2024 · 1 comment

Comments

@RafikMk
Copy link

RafikMk commented Jan 9, 2024

Problem Description:
I am encountering an issue when running the ./gradlew assemblerelease command in a project using react-native-skeleton-placeholder. The project runs fine when executing yarn android, and the Skeleton component displays without any issues. However, when creating a release build, I encounter errors related to Android resources.

Steps to Reproduce:

  1. Run yarn android - the project functions without error.
  2. Run ./gradlew assemblerelease to create a release build.
  3. The following error occurs at this stage.

Error Message:

Execution failed for task ':react-native-masked-view_masked-view:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > 1 exception was raised by workers:
     com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
     AAPT: aapt2 W 01-09 18:57:45 20348 297752 LoadedArsc.cpp:657] Unknown chunk type '200'.
     [Followed by specific errors related to missing resources]

Environment:
React Native Version: 0.64.4
react-native-skeleton-placeholder Version: 5.2.4
Platform: Android
Operating System: macOS

@chramos
Copy link
Owner

chramos commented Jun 17, 2024

hi @RafikMk
sorry the long delay.

this is weird for me because I was using exactly the version 0.64.4 in January 2024 and I had no issues to build android with assemblerelease command.

now I did upgrade RN version to 0.72 and also there is no issue

I'll try to create a new project using the version you are facing the issue and I'll try to replicate it

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

2 participants