How do I build the react-native app so I can test it in hockeyapp without being connected?
I'm using react-native-hockeyapp and successfully built the app, which listed it on hockeyapp, but now with the hockeyapp changes:
It does not run on a connected device with run-android and I get a white screen and no console debug messages anymore.
When I uploaded the app_Debug.apk to the hockeyapp by dragging it on the website, I got an invite. Run it on my device and get the white screen and the following two errors:
a. unable to load script from assets 'index.android.bundle'. Make sure your bundle is pakcaged correctly...
It then shows a white screen.
b. If I shake and press reload it says: could not connect ot development server. I don't want to connect to development server. I want to test it disconnected!
How do I build the app? In Android Studio? Any pointer to instructions?
And how do I preserve the possibility to react-native run-android so that I can test it locally and debug quickly for development?
I created a keystore and then went to myproject/android folder and gradlew assembleRelease
See https://github.com/benloopcompany/react-native-hockeyapp/issues/84 for more details
Related
I want to build APK from the flutter project and share it to someone to review. I followed the docs, but the problem is when he tries to open the APK he gets
"there was a problem parsing the package"
I tried it on another device and gets
"App not installed"
I think the problem is in the APK file, So how I can build a correct APK that works on real devices?
I keep the name of the file "app.apk" does that matter?
from the Flutter docs, to build an APK from the command line:
Run flutter build apk
(The flutter build command defaults to --release.)
This command results in an APK file:
[project]/build/app/outputs/flutter-apk/app-release.apk
take note of the path and ask name(app-release.apk)
if you would like to debug why the apk not running on physical device, install this app https://fbflipper.com/ on your system, and connect your mobile device though a usb cable, now when you run the apk, on the flipper app you will receive crash report that will help you understand why your app is crashing!
I've finally completed building my own first flutter app, a lot thanks to SO. But I've still got an issue about testing my flutter apk in others' devices. So, finally i got 'app-release.apk', 'app.apk' and few more apk-related files. So excited, I sent those files to my friends, but friends told me that the app is well downloaded but not able to open it. So here's the question! Is there any additional essential commands to successfully open the apk file on real android device? If so, is there really no way to install and successfully open and use .apk or .aab flutter app in my friends' android device? I want to test my app in friends' device BEFORE google's review is done! Thank you in advance [:
Hey congratulations that you have completed the first app.
you have to run this command
flutter build apk --split-per-abi
this command gives your three apk file so you have to ask your friend that which processor he has. Depends on it you will give it.
<app dir>/build/app/outputs/apk/release/app-armeabi-v7a-release.apk
<app dir>/build/app/outputs/apk/release/app-arm64-v8a-release.apk
<app dir>/build/app/outputs/apk/release/app-x86_64-release.apk
Make sure your app is running perfectly in release mode as well
you can verify it via flutter run --release -v.
-v means verbose you can see the complete logs of your flutter app
I use VSCode so can't comment on AS. Basically though, to give your friends apks that they can side load on Android devices. In the terminal, first do a Flutter clean and when it completes execute 'flutter build apk --target-platform android-arm64'. The resultant app.apk in your outputs folder should be able to run on their devices.
I had developed a flutter application with Razorpay payment gateway. While I run this app in debug mode, it works fine. And hot reload also works fine. Then I generate apk using flutter build apk command, After installing this application with that apk file. While entering into the Razorpay payment gateway the app stops.
And this same case also occurs in another application also, I'd developed another app with Jitsi video connection setup. While entering the Video connection gateway stops. and of course, this also worked fine in debug and hot reload mode.
I'd found something, app stopes only when Loading com.google.android.webview in my above specified two cases.
My log shows that,
I/WebViewFactory(pId): Loading com.google.android.webview version XX.X.XXXX.XXX (code codeId)
I forgot to add proguard-rules.pro file at android/app. So only these two apps stoped while installed with apk.
For Gitsi - https://github.com/gunschu/jitsi_meet/blob/master/example/android/app/proguard-rules.pro
For Razorpay - https://github.com/razorpay/razorpay-flutter/issues/42
I have created a basic app using react native. When I run the app using react-native run-android, the app runs successfully on a connected device.
Now I want to share the apk file with the client. For that I have created the apk following the steps mentioned on:
https://facebook.github.io/react-native/docs/0.51/signed-apk-android.html
When I install the app using the generated apk, the app installs successfully, but gives the following error when the app is opened the first time.
After that whenever I open the app, I get a blank screen.
I am trying to prepare my app for release.
When I run the app from android studio it works fine. But when I upload a beta build to the Play Store or I run adb install android/app/app-release.apk and try to run the app on my phone, it shows the Unfortunately App, has stopped message.
How can I debug this? Is there a way to run the release build on my phone through android studio so that I can view the logs?
I have never tried, but leave your device plugged in to USB. Run adb logcat in the terminal.
There's probably additional settings to filter for your specific application package