website icon indicating copy to clipboard operation
website copied to clipboard

[Android build file location error]

Open 321paranoiawhy opened this issue 2 months ago • 2 comments

Page URL

https://docs.flutter.dev/deployment/android#build-an-apk

Page source

No response

Describe the problem

In older flutter version, the android build apk file location is right. But in newer flutter version (I do not know above which flutter version), the apk file location should be changed from:

[project]/build/app/outputs/apk/release/app-armeabi-v7a-release.apk
[project]/build/app/outputs/apk/release/app-arm64-v8a-release.apk
[project]/build/app/outputs/apk/release/app-x86_64-release.apk

to:

[project]/build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk
[project]/build/app/outputs/flutter-apk/app-arm64-v8a-release.apk
[project]/build/app/outputs/flutter-apk/app-x86_64-release.apk

that is remove /release/ and change /apk/ to /flutter-apk/.

the AAB format is not influenced.

and shoule include [project]/build/app/outputs/flutter-apk/app-release.apk when not split per ABI.

Expected fix

No response

Additional context

No response

I would like to fix this problem.

  • [ ] I will try and fix this problem on docs.flutter.dev.

321paranoiawhy avatar Oct 11 '25 02:10 321paranoiawhy

Image

CLI prints the one with flutter-apk/ but generated APKs are present in both directories.

piedcipher avatar Oct 27 '25 21:10 piedcipher

Image

CLI prints the one with flutter-apk/ but generated APKs are present in both directories.

So may be described these behavior in the doc somewhere else?

321paranoiawhy avatar Oct 29 '25 13:10 321paranoiawhy