2

now I'm making an app using flutter and trying to upload the app as internal test on Google play store. I saw people asking how to do it, but could not figure it out... On the official document, it says "Build > Build > Generate Signed Bundle/APK" and I can generate APK, but I don't see the "Generate Signed Bundle/APK".

enter image description here

When I select "Build APK" in the picture above, it gives me the message like

You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64. If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size. To generate an app bundle, run: flutter build appbundle --target-platform android-arm,android-arm64,android-x64 Learn more on: https://developer.android.com/guide/app-bundle To split the APKs per ABI, run: flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi Learn more on: https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split Running Gradle task 'assembleRelease'...
27.9s ✓ Built build/app/outputs/apk/release/app-release.apk (19.2MB). Process finished with exit code 0

Also, I saw this chat (How to build signed apk from Android Studio for Flutter), but I cannot see "open android module in android studio" enter image description here

Even when I opened the android project with different window, I cannot see the option as well..

enter image description here

it will be really helpful if someone can teach me how to generate the APK from my current situation...

Thank you so much..

  • You can upload an app bundle (which is preferred btw) for internal test as well, no need to build APK. To build an app bundle all you need to do is to switch over to terminal (bottom left) and type in "flutter build appbundle". That is if you've previously configured signing , manifest, icons etc. I suggest you read this: [https://flutter.dev/docs/deployment/android](https://flutter.dev/docs/deployment/android) – Uroš Jun 09 '20 at 05:11

2 Answers2

0

The reason why Open Android module in Android Studio is missing under Tools > Flutter is likely because you're using an older version of Flutter DevTools on Android Studio. You can run flutter pub global activate devtools on the Terminal to update the DevTools installed on the machine as mentioned on this guide.

Omatt
  • 8,564
  • 2
  • 42
  • 144
-1

to build apk use this line in terminal

flutter build apk --release --no-sound-null-safety
Dijkgraaf
  • 11,049
  • 17
  • 42
  • 54
walid
  • 11