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.61k stars 459 forks source link

Error: Could not get unknown property 'kotlinVersion' for project #1040

Closed recallwei closed 7 months ago

recallwei commented 7 months ago

What happened?

Bump to 1.20.0, then build throw an error.

image

Version

1.20.0

What platforms are you seeing this issue on?

System Information

System:
  OS: macOS 14.1.1
  CPU: (10) arm64 Apple M2 Pro
  Memory: 167.36 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.9.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.19
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.1.0
    path: /usr/local/bin/npm
  Watchman:
    version: 2023.09.04.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.12.1
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK:
    API Levels:
      - "29"
      - "33"
      - "34"
    Build Tools:
      - 29.0.2
      - 30.0.2
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
    System Images:
      - android-33 | Google APIs ARM 64 v8a
      - android-33 | Google Play ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 15.0.1/15A507
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.8.1
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.7
    wanted: 0.72.7
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Steps to Reproduce

Bump to 1.20.0 and start android.

dangleh commented 7 months ago

Happened to me, too!

cheehieu commented 7 months ago

Same here... In the meantime, I've just reverted back to version 1.19.8 to avoid the build error.

"@react-native-async-storage/async-storage": "1.19.8",
sajad786 commented 7 months ago

Same here... In the meantime, I've just reverted back to version 1.19.8 to avoid the build error.

"@react-native-async-storage/async-storage": "1.19.8",

This works fine for me . Rn version ^0.67.5

vipulav-j commented 7 months ago

"@react-native-async-storage/async-storage": "^1.17.9", removed ^ from above version and works for me.

krizzu commented 7 months ago

Seems like a regression introduced in latest version, going to address it now. Please hold on with upgrading to v1.20.0 and use v1.19.8 for now

krizzu commented 7 months ago

Fix is here: #1042

krizzu commented 7 months ago

Version v1.21.0 is out, please give it a go https://github.com/react-native-async-storage/async-storage/releases/tag/v1.21.0

firstpersoncode commented 7 months ago

I tried the patch.. the build error message is gone.. but now my app keep crashing, but my app on ios working fine..

krizzu commented 7 months ago

@firstpersoncode please open new issue with details, so I could check it out 🙏

FraserKemp commented 7 months ago

Same issue for me on version 1.17.11, I also downgraded to v1.19.8 for now until the PR is through.

v1.19.8 working perfectly for me. Thanks!

firstpersoncode commented 7 months ago

@firstpersoncode please open new issue with details, so I could check it out 🙏

false alarm.. I just clean the build and now it works. 🙏