facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
117.14k stars 24.08k forks source link

error: package com.swmansion.reanimated does not exist import com.swmansion.reanimated.ReanimatedPackage; #37125

Closed avioXD closed 1 year ago

avioXD commented 1 year ago

Description

\android\app\build\generated\rncli\src\main\java\com\facebook\react\PackageList.java:37: error: package com.swmansion.reanimated does not exist import com.swmansion.reanimated.ReanimatedPackage; ^ D:\DATASPACE\Dataspace Academy Mobile APP\NEW-RELASE\DataspaceAcademy\android\app\build\generated\rncli\src\main\java\com\facebook\react\PackageList.java:108: error: cannot find symbol new ReanimatedPackage(), ^ symbol: class ReanimatedPackage location: class PackageList 2 errors

FAILURE: Build completed with 2 failures.

React Native Version

0.71.7

Output of npx react-native info

System: OS: Windows 10 10.0.22621 CPU: (12) ia32 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 3.25 GB / 15.87 GB Binaries: Node: 18.15.0 - C:\Program Files (x86)\nodejs\node.EXE Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD npm: 9.5.0 - C:\Program Files (x86)\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: AI-221.6008.13.2211.9514443 Visual Studio: Not Found Languages: Java: 11.0.17 npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: 0.71.7 => 0.71.7 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Snack, code example, screenshot, or link to a repository

.{ "name": "DataspaceAcademy", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest" }, "dependencies": { "@react-native-async-storage/async-storage": "^1.17.11", "@react-native-firebase/app": "^17.4.3", "@react-native-firebase/messaging": "^17.4.3", "@react-navigation/bottom-tabs": "^6.5.7", "@react-navigation/native": "^6.1.6", "@react-navigation/native-stack": "^6.9.12", "accordion-collapse-react-native": "^1.1.1", "axios": "^1.3.4", "crypto-js": "^4.1.1", "deprecated-react-native-prop-types": "^4.0.0", "expo-asset": "^8.9.1", "expo-av": "^13.2.1", "expo-modules-core": "^1.2.6", "lottie-react-native": "^5.1.5", "moment": "^2.29.4", "native-base": "^3.4.28", "react": "18.2.0", "react-native": "0.71.7", "react-native-animatable": "^1.3.3", "react-native-crypto-js": "^1.0.0", "react-native-document-picker": "^8.2.0", "react-native-firebase": "^5.6.0", "react-native-htmlview": "^0.16.0", "react-native-image-crop-picker": "^0.39.0", "react-native-image-slider-box": "^2.0.7", "react-native-knob": "^2.3.2", "react-native-linear-gradient": "^2.6.2", "react-native-orientation-locker": "^1.5.0", "react-native-pager-view": "^6.2.0", "react-native-push-notification": "^8.1.1", "react-native-reanimated": "^2.17.0", "react-native-recaptcha": "^1.0.6", "react-native-recaptcha-that-works": "^1.3.2", "react-native-render-html": "^6.3.4", "react-native-safe-area-context": "^3.3.2", "react-native-screens": "^3.20.0", "react-native-snap-carousel": "^3.9.1", "react-native-svg": "^12.5.1", "react-native-svg-uri": "^1.2.3", "react-native-swiper": "^1.6.0", "react-native-system-setting": "^1.7.6", "react-native-tab-view": "^3.5.1", "react-native-toast-message": "^2.1.6", "react-native-vector-icons": "^9.2.0", "react-native-video": "^5.2.1", "react-native-video-basic-controls": "^0.1.16", "react-native-video-controls": "^2.8.1", "react-native-webview": "^11.26.1", "sync-storage": "^0.4.2", "zustand": "^4.3.6" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native-community/eslint-config": "^3.2.0", "@tsconfig/react-native": "^2.0.2", "@types/jest": "^29.2.1", "@types/node": "^18.15.13", "@types/react": "^18.0.24", "@types/react-native-crypto-js": "^1.0.0", "@types/react-native-dotenv": "^0.2.0", "@types/react-native-htmlview": "^0.16.0", "@types/react-native-push-notification": "^8.1.1", "@types/react-native-snap-carousel": "^3.8.5", "@types/react-native-vector-icons": "^6.4.13", "@types/react-test-renderer": "^18.0.0", "@types/sync-storage": "^0.4.0", "babel-jest": "^29.2.1", "eslint": "^8.19.0", "jest": "^29.2.1", "jetifier": "^2.0.0", "metro-react-native-babel-preset": "0.73.8", "prettier": "^2.4.1", "react-native-dotenv": "^3.4.8", "react-test-renderer": "18.2.0", "typescript": "4.8.4" }, "jest": { "preset": "react-native" } }

cortinico commented 1 year ago

Hi @avioXD Thanks for reporting this issue.

It seems like this issue is actually unrelated to React Native core but related to Reanimated. Please open this issue against this other repository:

https://github.com/software-mansion/react-native-reanimated/issues

I'll be closing this but feel free to reopen if the other repo points back to us as a issue in the core of React Native.