-
Notifications
You must be signed in to change notification settings - Fork 26.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cant create apk file with flutter project? Execution failed for task ':app:compileFlutterBuildRelease' #63357
Comments
Hi @Ravi-lk |
i got similar issue. any fixes so far? |
same problem |
same problem Flutter doctor:
appbundle verbose:
pubspec.yaml
|
Same problem here! Any solution? |
For anyone facing this same issue please provide your |
Hello, same problem for me flutter doctor -v
flutter build appbundle --verbose
pubspec.yaml
|
go to android studio select "run" option on top bar and "min.dart in release mod" must device connected |
This is very likely a duplicate of #60325. Can you try it on master? You can work around this by passing |
@dnfield Thanks, it worked for me. But with So there are 3 possible solutions:
And everything will work! |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! |
Same problem here, with master channel, and using --no-tree-shake-icons. Pubspec.yamlname: app publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: dependencies: cupertino_icons: ^0.1.3 dev_dependencies: flutter: uses-material-design: true assets: fonts: flutter build apk --split-per-abi --no-tree-shake-icons -v[ +135 ms] executing: [C:\src\flutter\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] at [ +269 ms] ensureAnalyticsSent: 267ms flutter doctor -v[√] Flutter (Channel master, 1.22.0-10.0.pre.320, on Microsoft Windows [Version 10.0.19041.508], locale es-CO) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.2) [√] Android Studio (version 4.0) [√] VS Code, 64-bit edition (version 1.49.1) [√] Connected device (1 available) • No issues found! |
I installed it many times, the installation was successful, after the installation was completed, the operation has been running error FAILURE: Build failed with an exception.
BUILD FAILED in 28s C:\Users\xzhang5>flutter doctor -v [√] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [√] Android Studio (version 4.0) [√] Connected device (1 available) • No issues found! D:\g2\flutterProject\flutter_app_test>flutter build appbundle --verbose [ +256 ms] ensureAnalyticsSent: 252ms D:\g2\flutterProject\flutter_app_test>flutter build appbundle --verbose [ +255 ms] ensureAnalyticsSent: 252ms name: flutter_app_test The following line prevents the package from being accidentally published topub.dev using
|
have you check key.properties file? |
Kindly someone helps me out here as its has been 5 days since I am trying to find the solution: Here is my [ +256 ms] ensureAnalyticsSent: 252ms Here is my 'flutter doctor -v': [√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [!] Android Studio (not installed) [√] VS Code (version 1.54.3) [√] Connected device (1 available) ! Doctor found issues in 1 category.` and here is my 'pubspec.yaml': `name: spagreen The following defines the version and build number for your application.A version number is three numbers separated by dots, like 1.2.43followed by an optional build number separated by a +.Both the version and the builder number may be overridden in flutterbuild by specifying --build-name and --build-number, respectively.In Android, build-name is used as versionName while build-number used as versionCode.Read more about Android versioning at https://developer.android.com/studio/publish/versioningIn iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.Read more about iOS versioning athttps://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.htmlversion: 1.0.0+1 environment: dependencies: dev_dependencies: For information on the generic Dart part of this file, see thefollowing page: https://dart.dev/tools/pub/pubspecThe following section is specific to Flutter.flutter: fonts: An image asset can refer to one or more resolution-specific "variants", seehttps://flutter.dev/assets-and-images/#resolution-aware.For details regarding adding assets from package dependencies, seehttps://flutter.dev/assets-and-images/#from-packagesTo add custom fonts to your application, add a fonts section here,in this "flutter" section. Each entry in this list should have a"family" key with the font family name, and a "fonts" key with alist giving the asset and other descriptors for the font. Forexample:For details regarding fonts from package dependencies,see https://flutter.dev/custom-fonts/#from-packages` |
0 this will work!!! flutter clean, |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
When I trying to create an apk file from my flutter project, It shows the following error. Can anyone give me a solution please?
My flutter doctor
The text was updated successfully, but these errors were encountered: