react-native-async-storage / async-storage

An asynchronous, persistent, key-value storage system for React Native.
https://react-native-async-storage.github.io/async-storage/
MIT License
4.62k stars 459 forks source link

Get this error: Execution failed for task ':react-native-async-storage_async-storage:verifyReleaseResources'. #964

Closed shayelbaz1 closed 11 months ago

shayelbaz1 commented 1 year ago

What happened?

I try to build my app with cd android && ./gradlew assembleRelease

and get this error:

`

Task :react-native-async-storage_async-storage:verifyReleaseResources FAILED aapt2 W 05-18 14:51:40 93852 3846600 LoadedArsc.cpp:657] Unknown chunk type '200'.

FAILURE: Build failed with an exception.

Version

^1.18.1

What platforms are you seeing this issue on?

System Information

info Fetching system and libraries information...
System:
    OS: macOS 13.2.1
    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
    Memory: 23.50 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.19.1 - ~/.nvm/versions/node/v16.19.1/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 8.19.3 - ~/.nvm/versions/node/v16.19.1/bin/npm
    Watchman: 2023.04.24.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.12.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    Android SDK:
      API Levels: 23, 25, 28, 29, 30, 31, 32, 33
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0, 33.0.0, 33.0.0, 33.0.1
      System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-31 | Google APIs Intel x86 Atom_64
      Android NDK: 22.1.7171670
  IDEs:
    Android Studio: 2022.1 AI-221.6008.13.2211.9619390
    Xcode: 14.3/14E222b - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.15 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: Not Found
    react-native: Not Found
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to Reproduce

npx react-native@0.64.4 init example --version 0.1

yarn add @react-native-async-storage/async-storage

yarn android

krizzu commented 1 year ago

I had to downgrade to java 11 to make it run, but I did not have issues running RN 0.64.4.

Your repro step will not work tho, you have to specify version like this: npx react-native init example --version 0.64.4

I suggest to clean the gradle build, using ./gradlew clean and trying again.

github-actions[bot] commented 11 months ago

This issue has been marked as stale due to inactivity. Please respond or otherwise resolve the issue within 7 days or it will be closed.