I try to use https://docs.expo.io/versions/v40.0.0/sdk/payments/ in my project. It is stated that "Stripe is supported in the managed workflow for Android" however it crashes for me on a real device. It works perfectly on the emulator and on the device with Expo Go but it doesn't work as a standalone installed apk created by "expo build:android -t apk". I have uploaded my reproducer here https://bitbucket.org/zahoranszky/stripe/src/master/ If you run it crashes all the time. It is the setOptionsAsync method. I found many complaints about it on the net but none of the suggested solutions worked for me.
Any idea how to fix this issue?
Thx
Stripe will work on Expo go out of the box, but to build standalone app ios/android you must use EAS build to compile native code.
CHeck https://docs.expo.dev/versions/latest/sdk/stripe/#standalone-apps
Related
So I recently started working with my friend on his app project and I've had trouble building his react-native based project. It's both ios and android.
On android, I can get as far as building, but when I run the app shuts down instantly or shows a red screen with some firebase error.
On ios, I get a build error.
My question is: what do I need to install when I first pull the repo from github? I run '''yarn install''' straight away and run '''pod install''' from the ios folder but that isn't enough. Anything I should run for android more than the yarn install command I had already used?
Thanks!
It seems your development environment is not set up yet. Follow this link to set up your environment.
I have issue. First I was use Windows10. I change my mind 1 years later and I using ubuntu. I building app-debug.apk in Ubuntu but not work on my devices. I encounter with two error Sometimes block by play protect, sometimes the package conflicts with an existing package by the same name. But when i open Windows10 and building app-debug.apk there is no issue Have you ever solution this issue?
Try disabling the instant run in android studio. It causes lot of errors.
I have a really weird problem, I created an Android project, it worked perfectly and deployed to my real device, but after deleting that project in my computer and then download it from tfs, it builds correctly and deploy to emulator, but in the emulator after some time running and self-closing it's gonna work, but when I deploy it to my real device, it says deploy succeeded but it doesn't really deployed! I don't know why! if I create a new project it work perfectly, this issue happens only when I retrieve my project from tfs!
I found it, I install a copy that previously kept on my device and then uninstall it, then the deployment gonna work perfectly.
Further if you want to uninstall it, uninstall it for all users.
I have recently got the following error while installing PhoneGap build apk on phone or emulator
pkg: /data/local/tmp/android-debug.apk
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
Then I found the reason for it is due to signatures of the build app So then I uninstalled my android studio and Updated my Node js. Now I can install it on Emulator but not the phone Still I am getting the same error.
I have already gone through the solution available on the Internet including INSTALL_FAILED_UPDATE_INCOMPATIBLE when I try to install compiled .apk on device
With help of available solutions, I can install in Emulator but not in my when phone and I don't have any previous versions of the app to uninstall the app
Still, I have no clue how to solve this error.
Please help to how to solve it.
Yes, I solved my Problem.
The problem If you have Android Studio, and PhoneGap installed in the same system the Signature key Generated by Android Studio will make your build app by Phonegap, leads to the problem mentioned above. To solve this one, Uninstall all the Android studio, Phonegap New Desktop application, and CLI and reinstall only PhoneGap then the problem is solved.
Hope this helps you.
I know Android Studio is currently in beta, but still maybe somebody has a solution to this. Similar to Android studio running app on Samsung Galaxy S3 hangs at Uploading file I have issues when trying to run my app. It doesn't actually matter if its the physical phone or the android emulator.
I've tried with my app and a new empty project: same result. After compilation it tries to upload the app and just gets stuck. I've tried re-installation of Androidstudio and rebooting. Fun fact: on my laptop everything works just fine.
Any more ideas would be appreciated.
So actually it looks like something with the Platform tools was going wrong. A delete and install in the SDK Manager solved my issue. Weird, that the tools coming with the studio bundle are broken on my system.
Go to build and Rebuild your project. It will solve the problem.