If you compile the Appbundle application and upload it to the test channel in google play, then when you open the application, it immediately crashes. If you compile apk and install it on your phone, then everything is ok. How can I find the error after compiling the Appbundle? Thank you
Have you included firebase? If yes make sure to add sha1 and sha256 from Google Play in firebase console and add the json file in your project and upload another bundle
Related
I couldn't install flutter app on my android phone. How can I do it? I can run by usb debugging However I want to install it on my phone. Can someone help me please?
If you use IntelliJ Idea (it should also work on Android Studio), you can go to
Build -> Flutter -> Build APK, (in the menu bar)
and after building, your apk will appear in
build/app/outputs/flutter-apk/app-release.apk,
just send the file to your phone and install, your phone will probably tell you not do download cause it isn't checked and secured or something, just ignore and install anyway
Connect your Android device to your computer with a USB cable.
Enter cd [project].
Run flutter install.
Source: here
You need to build the app to get the apk. For building apk use this command in console: flutter build apk and if you want to build your apk in smaller size then use this command in console: flutter build apk --split-per-abi.
After building apk you will find it in [project]\build\app\outputs\flutter-apk\app-armeabi-v7a-release.apk here.
If you don't want to build apk and just want to test your app you can run it in profile mode by using this command in console: flutter run --profile.
In android studio under the tools-> build -> build apk will create and app for you and you can get and the output location will show you after the builing the app
I saw documentation for flutter firebase Appcheck
what do I need to do in release mode with an original certificate?
because all it says is for website verification
await FirebaseAppCheck.instance.activate(webRecaptchaSiteKey: 'recaptcha-v3-site-key');
I am unable to understand what to add in code for making use of app check in flutter
I think that code is only for the web platform.
For android open your main project directory in the terminal and follow the steps below.
flutter> cd .\android\
flutter\android> .\gradlew signingReport
This will print all your keys. Find the applicable one that you want. Then, copy the SHA-256 into the correct place in the firebase console.
I am stuck with an Admob problem. I cannot display the application on the emulator. The app works great on Android.
This is the Runner/GeneratedPluginRegistrant.m:
This file is generated automatically.
What can I try to solve this issue?
This happens to me seemingly at random with whichever package iOS doesn't feel like cooperating with on a particular day.
This has worked for me in the past:
run flutter clean in terminal
run flutter pub get
navigate to iOS folder cd ios
run pod install
Sometimes that does it by itself.
Other times I find I've had to delete the entire iOS folder then have recreate it with
flutter create .
Then sometimes I would re-create the folder then do all the first steps again before I can build successfully.
If you do that and have Firebase in your app, keep in mind you'll have to re-add your GoogleService-Info.plist file via X-Code.
I need to build release apk I have see another answer I run this command in my terminal
flutter build appbundle --target-platform android-arm,android-arm64
it's showing this Built build\app\outputs\bundle\release\app-release.aab
Its not apk file? I need release build apk so can upload on play store
You can just run flutter build apk to generate release apk.
Have a look at this page for more information.
Also, appBundles can also be uploaded to the Play Store, so the .aab file is absolutely fine :D
No worries, you can upload the .aab file just as well.
In fact, this is the recommended way - read here why this is the case: https://developer.android.com/guide/app-bundle.
You can run "flutter build apk --split-per-abi", so that it will give a separate release APK for each target platform.
I've created a web-browser using construct 2 application and once i have finished it and had an executable .apk file, i tried to upload it to google play but it always gives me this error, "You uploaded an APK that is not zip aligned. You will need to run a zip align tool on your APK and upload it again."
Could someone tell me how to fix this?
PS: i also have bought eclipse software.
thanks