Skip to content

Instantly share code, notes, and snippets.

@PiN73
Created November 15, 2019 15:02
Show Gist options
  • Select an option

  • Save PiN73/ffe65a71cc7a75a15160e0c2f319365e to your computer and use it in GitHub Desktop.

Select an option

Save PiN73/ffe65a71cc7a75a15160e0c2f319365e to your computer and use it in GitHub Desktop.
functional_widget - flutter build apk
C:\Users\Pavel\AndroidStudioProjects\test_functional_widget>flutter build apk
You are building a fat APK that includes binaries for android-arm, android-arm64.
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
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 --split-per-abi
Learn more on: https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
Initializing gradle... 1,0s
Resolving dependencies... 4,1s
starting build daemon... 1,3s
Compiler message:
org-dartlang-app:/main.dart:23:16: Error: Method not found: 'Foo'.
child: Foo(42),
^^^
org-dartlang-app:/main.dart:23:16: Error: The method 'Foo' isn't defined for the class 'MyHomePage'.
- 'MyHomePage' is from 'package:test_functional_widget/main.dart' ('org-dartlang-app:/main.dart').
Try correcting the name to the name of an existing method, or defining a method named 'Foo'.
child: Foo(42),
^^^
Compiler terminated unexpectedly.
FAILURE: Build failed with an exception.
* Where:
Script 'C:\flutterSdk\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 739
* What went wrong:
Execution failed for task ':app:compileFlutterBuildReleaseArm'.
> Process 'command 'C:\flutterSdk\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 13s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 13,8s
Gradle task assembleRelease failed with exit code 1
C:\Users\Pavel\AndroidStudioProjects\test_functional_widget>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment