When I installed the #notifee/react-native and ran the command npx react-native run-android it gives this error message.
Error Image
What is the issue?
I tried adding this to the android manifest file
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
and installing Android API 33
Related
I'm trying to build my apk & I'm getting this error while building my release apk in react native. Is there any way to fix this react-native-location error?
I was facing this issue while building my apk in react native. To solve this issue you need to:
1- cd android and then ./gradlew clean
2- then in your root directory run yarn jetify or npx jetify
Following the official documentation in react native firebase/app#15.1.1 it gives me the build failed error for terminal using the npx react-native run-ios and also from xcode builed both failed to build ...Can someone Provide me the installation for react-native firebase/app along with it react-native firebase/messaging and pushnotification/ios ..i am new to react-native Please help...
When I react-native run-android a shoutem clone project, first it was showing a development server error code 500..I changed the react-native and babel preset for react native from package.json. And now there is no error but the app crashes right after build. What can I do to fix this?
I searched for this error on the git repo and online but I didn't find anything what brings me to here. React native is totally new for me so if I missed something stupid, my apologize.
I'm trying to install & link react-native-fbsdk in my react-native project: https://github.com/facebook/react-native-fbsdk
I went through these steps:
react-native init [YourApp]
Result: done, project created
react-native install react-native-fbsdk
Output: Scanning 712 folders for symlinks in C:\wamp\www\chatapp\node_modules (26ms)
rnpm-install info Module react-native-fbsdk has been successfully installed & linked
react-native link react-native-fbsdk
Output: Scanning 712 folders for symlinks in C:\wamp\www\chatapp\node_modules (29ms)
{ [Error: Cannot find module 'C:\wamp\www\chatapp\node_modules\react-native-fbsdk\package.json'] code: 'MODULE_NOT_FOUND' }
Print screen:
Of course when I try to build my app with react-native run-android I got this:
...
:app:processDebugResources
:app:generateDebugSources
:app:processDebugJavaRes UP-TO-DATE
:app:compileDebugJavaWithJavac
C:\wamp\www\chatapp\android\app\src\main\java\com\chatapp\MainApplication.java:16: error: cannot find symbol
import com.facebook.FacebookSdk;
...
More Info:
React native version: 0.42.3
npm -version 4.2.0
I didn't find "react-native-fbsdk" folder under
my node_modules folder.
Windows 8.1
I'm working with Android Studio
Android SDK Platform-Tools 25.0.4
Android SDK Tools 25.2.3
Thank you in advance.
Leo.
EDIT + UPDATE: Added react-native tag. Facebook team investigated this and it looks like an issue with React Native itself.
https://developers.facebook.com/bugs/1889723254644374
After few days with the community I found the problem!
This line is not valid commend for react native!
react-native install react-native-fbsdk
Instead we need to write:
npm i -S react-native-fbsdk
and then
react-native link react-native-fbsdk
So this isn't my first react native app but this is the first time i'm getting this error. I get the usual error when running:
react-native run-android --variant=release
Thats ok because I know it doesn't work. However, this one always use to work:
react-native run-android --configuration=release
But it is just stating: error: unknown option--configuration'`
I've had that issue before. I've done everything on the generate a signed APK web page. I can get a non-release but not the release. I even have the APK from: cd android && ./gradlew assembleRelease
Have you recently upgraded your React Native version?
Because the following only works on version 0.39.x
react-native run-android --configuration=release
Else, just use this
react-native run-android --variant=release