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

× Build failed with message C:\Users\91626\Downloads\testwindowsapp\node_modules\react-native-sound\windows\RNSoundModule\RNSoundModule\RNSoundPackage.cs(1,7): error CS0246: The type or namespace name 'ReactNative' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\91626\Downloads\testwindowsapp\node_modules\react-native-sound\windows\RNSoundModule\RNSoundModule\RNSoundModule.csproj]. Check your build configuration. #838

Open
Adbhutashra opened this issue Feb 1, 2024 · 3 comments
Labels

Comments

@Adbhutashra
Copy link

I have installed react-native-sound , I am using this for my windows or desktop application but it is not working

"react-native": "0.73.3",
"react-native-cli": "^2.0.1",
"react-native-sound": "^0.11.2",
"react-native-windows": "0.73.4",

these are the dependencies I am using but getting error while running npx react-native run-windows 


Please help me there, If you want more information please let me know.
@AhmedMustafa505
Copy link

I have the same issue that The type or namespace name 'ReactNative' could not be found (are you missing a using directive or an assembly reference?)

I've tried version 0.11.1 and still same problem.

@sanjeevyadavIT
Copy link

you need to create a patch just like this but with correct namespace for react-native-sound like it is being done in react-native-video

it is because of AGP 8 upgrade in RN 0.73

TheWidlarzGroup/react-native-video@7e5bc48

@AhmedMustafa505
Copy link

you need to create a patch just like this but with correct namespace for react-native-sound like it is being done in react-native-video

it is because of AGP 8 upgrade in RN 0.73

react-native-video/react-native-video@7e5bc48

I don't understand what you meant by creating new patch, can you explain it more ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants