i have a problem when i build an apk using the command expo build:android. I've got a white screen. It seems the problem is related to firebase because i had to add react native fcm to receive notifications on my app. When i comment everything related to fcm/firebase (androidmanifest, build.gradle...) my apk works. The problem is idk where i can see the errors, what i am missing because i followed all the tutorial on the react native firebase website to install cloud messaging. If you have an idea it would really help me, thanks in advance.
this is the tutorial in question : https://rnfirebase.io/messaging/usage
I tried many times to modify the dependencies in build gradle, add new things i found in internet on the manifest, change versions... nothing works :(
try checking your Android studio logs which shows red color highlighted text in it while running the react-native application. Hope that helps you in finding the problem.
Related
I was testing the new version of Ionic framework with Capacitor as I tried to build and run my app on emulator and my device I faced this error without success in installing app
No Compatible APKs found for the device.
after lots of search and struggling to fix this and lots of fails, as I was talking to one of my friends about it I realised maybe this is related to build configuration.
as I could not find similar anywhere I decided to share the answer here maybe helps and save someone time.
No Compatible APKs found for the device.
This error appears to your Build Output when android studio cannot find the related APK file generated, so by a simple change in your buid configuration you can fix this, in my case I fixed the problem like this:
thorugh this section select:
Edit Configuration
default Deploy option under Installation option is set to
APK from app bundle
by changing it to
Default APK
you'll be able to build and run your app successfully.
I hope it help you to run your shiny app asap ;p
Currently new to programming and wanting to start on my first project, however I can't figure out the issue despite going to other sources for answers. As I have seen a lot of answers pointing to, is this an issue with the react-native version? Or is this an issue with the directory?
I'm running react 16.8.3 and expo ^33.0.0, and have started to encounter this problem as soon as I imported a header from .src/components/header. In my command prompt the message "unable to resolve ".src/components/header" from "App.js". If I remove this and the import, the app works fine and loads up on the Expo app on my phone with no issues.
Any help on this would be great, as I'm clueless at the moment.
Hi guys been trying to run my react native project but have failed. Initially, i could deploy it very well on my device while using linux, but when i ran it on windows now it throws an. Can any one help me out, here is the screen shot on my nodejs console.
You see the list of actions to take to fix the issue? I would do each of them.
I'm seeing this error in fabric which is causing a lot of crashes.
I have searched a lot but failed to find anything useful.
I found this but I cannot see how it relates to react native.
I'm not using WebView in my code but I thought maybe one of my node_modules packages is using it and the only one that included WebView in it was react-native-onesignal
Here is the full stacktrace
It's only happening in android 7. But it might just be that android put Webview in a seperate package from android 5+
This crash has been fixed in react-native master around April end 2019.
To fix this issue you need to upgrade to react-native version 0.60.0 or above.
Here is the link to the PR that fixed the issue: https://github.com/facebook/react-native/pull/24533
Edit:
To shed more light on this issue, we have been facing the same crash on our app. The most probable reason that I could find was that this crash occurs when the Android System WebView is updating in the background while your app is trying to use it. This causes the system to assume that the WebView is not installed.
This android issue is being tracked here.
How do you know that onesignal is including the webview? The source doesn't have a webview except in the proguard rules
My instincts tell me this has nothing to do with onesignal. Hope you were able to resolve
Is the ChildBrowser plugin for Android supposed to work on the emulator? cuz I think I have everything setup as explained here but I dont have a real device to test it out. When running the app it doesnt trigger it after clicking the button. Ive put some console stuff there and is in fact reaching that point to run the script: window.plugins.childBrowser.showWebPage(url, true););
The iPhone version of the plugin runs beautifully.
btw, Im using the latest version of both phonegap: 0.9.4 and the ChildBrowser plugin. Thanks.
Nevermind :) somehow eclipse -as lazy as can be- needs to be aware of the ChildBrowser.java existence even though it's already there, stored at the proper place within the project!
Right. Eclipse drives the .apk file build so it needs to know about all of the files to include in the build.