-
Notifications
You must be signed in to change notification settings - Fork 465
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
Android app crashes without logs, adb logcat shows [Didn't find class "com.reactnativecommunity.asyncstorage.AsyncStoragePackage"] #848
Comments
You should not have to use manual linking, as you cannot link any native code using expo.
I'd ask on Expo forum for help, seems like something that should be working out of the box |
Expo does allow for native modules since Expo 44 I guess The error is exactly whats written in the title, sorry about that It looks like React Native 0.69 breaks lots of packages’ autolinking. getsentry/sentry-react-native#2267 andpor/react-native-sqlite-storage#522 Dont know if related; but I have used AsyncStorage in the past, in Expo; and never had to manually link anything (EDIT : e.g. with other RN versions) EDIT2 : Also, works on iOS out-of-the-box; just Android gives me a hard time when building |
I just ran a quick test on RN 0.69.0 and I could install AsyncStorage and run the app successfully. |
Here is a reproductive example; and it does crash the same way.
Crashes without logs in the Debugger, only in I am not sure whether it is actually an Expo bug, I believe it is related to RN 0.69 EDIT : did you manually link ? EDIT2 : removed node_modules and deleted the package from package.json and reinstalled everything, builds on android just fine - super weird |
Thanks for the repro steps. I manage to get up and running, without manual linking. So all is good on my side. I see that you got it working too, so that's good! Feel free to close the issue. |
No thats not what I meant haha |
I ran the expo app with your steps just fine, so probably it's your dev env? |
Wow really ? Somehow I had to downgrade Expo version to SDK 45 it still didn't work, downgraded again to SDK 44 and now it works like it should Thanks again, shall I close ? |
Maybe try to clone your project again and then install everything? You can also try to do Yes, feel free to close |
What happened?
On a fresh install, removed node_modules and played multiple times between yarn & npm; every build for Android crashes (runs fine on iOS)
Using Expo SDK 46 and the version 1.17.10 of the package (every previous version has the same bug)
I had to manually link the package as to what's written in the Manual Linking page in the API.
This should be completely automatic and somehow only this package has this issue.
Version
1.17.10
What platforms are you seeing this issue on?
System Information
Steps to Reproduce
Install "@react-native-async-storage/async-storage": "^1.17.10", call the package in App.js, run
npx expo run:android
The text was updated successfully, but these errors were encountered: