-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
Problem with flutter build apk --release #59635
Comments
Hi @fabiomalinconi |
I reinstalled everything and Android Studio gives me a different message... flutter build apk --release: logsRunning "flutter pub get" in flutter... 22,2s
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
Compiler message:
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.5.0/lib/src/provider/flutter_advanced_networkimage.dart:143:24: Error: The method 'AdvancedNetworkImage.load' has fewer p
ositional arguments than those of overridden method 'ImageProvider.load'.
ImageStreamCompleter load(AdvancedNetworkImage key) {
^
../../../flutter/packages/flutter/lib/src/painting/image_provider.dart:574:24: Context: This is the overridden method ('load').
ImageStreamCompleter load(T key, DecoderCallback decode);
^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_svg-0.13.1/lib/src/picture_stream.dart:92:3: Error: The superclass, 'Diagnosticable', has no unnamed constructor that takes no arguments.
PictureStream();
^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_svg-0.13.1/lib/src/picture_stream.dart:192:16: Error: The superclass, 'Diagnosticable', has no unnamed constructor that takes no arguments.
abstract class PictureStreamCompleter extends Diagnosticable {
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
FAILURE: Build failed with an exception.
* Where:
Script 'C:\Users\fuldr\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 882
* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\Users\fuldr\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 40s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 54,1s
Gradle task assembleRelease failed with exit code 1
flutter doctor -v: doctor[√] Flutter (Channel stable, v1.17.3, on Microsoft Windows [Versione 10.0.19041.329], locale it-IT)
• Flutter version 1.17.3 at C:\Users\fuldr\flutter
• Framework revision b041144f83 (13 days ago), 2020-06-04 09:26:11 -0700
• Engine revision ee76268252
• Dart version 2.8.4
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at C:\Users\fuldr\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 46.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
flutter build apk --verbose: logs[ +17 ms] executing: [C:\Users\fuldr\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +39 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] b041144f833e05cf463b8887fa12efdec9493488
[ ] executing: [C:\Users\fuldr\flutter/] git tag --contains HEAD
[ +148 ms] Exit code 0 from: git tag --contains HEAD
[ +1 ms] 1.17.3
[ +6 ms] executing: [C:\Users\fuldr\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +22 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [C:\Users\fuldr\flutter/] git ls-remote --get-url origin
[ +20 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +71 ms] executing: [C:\Users\fuldr\flutter/] git rev-parse --abbrev-ref HEAD
[ +22 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +26 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +23 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ +93 ms] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +3 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ +42 ms] Found plugin admob_flutter at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\admob_flutter-0.3.1\
[ +49 ms] Found plugin firebase_admob at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_admob-0.9.0+7\
[ +2 ms] Found plugin firebase_analytics at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.2\
[ +2 ms] Found plugin firebase_messaging at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_messaging-5.1.5\
[ +39 ms] Found plugin flutter_webview_plugin at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.7\
[ +40 ms] Found plugin path_provider at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.3.0\
[ +29 ms] Found plugin screen at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\screen-0.0.5\
[ +6 ms] Found plugin share at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\share-0.6.2+1\
[ +5 ms] Found plugin shared_preferences at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.3+4\
[ +50 ms] Found plugin video_player at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\video_player-0.10.2+1\
[ +50 ms] Found plugin admob_flutter at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\admob_flutter-0.3.1\
[ +7 ms] Found plugin firebase_admob at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_admob-0.9.0+7\
[ +1 ms] Found plugin firebase_analytics at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-5.0.2\
[ +2 ms] Found plugin firebase_messaging at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\firebase_messaging-5.1.5\
[ +7 ms] Found plugin flutter_webview_plugin at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.7\
[ +7 ms] Found plugin path_provider at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider-1.3.0\
[ +24 ms] Found plugin screen at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\screen-0.0.5\
[ +2 ms] Found plugin share at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\share-0.6.2+1\
[ +1 ms] Found plugin shared_preferences at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.3+4\
[ +7 ms] Found plugin video_player at C:\Users\fuldr\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\video_player-0.10.2+1\
[ +71 ms] Generating C:\Users\fuldr\Desktop\Fuldrex\flutter\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +42 ms] 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
[ +17 ms] Running Gradle task 'assembleRelease'...
[ +1 ms] gradle.properties already sets `android.enableR8`
[ +3 ms] Using gradle from C:\Users\fuldr\Desktop\Fuldrex\flutter\android\gradlew.bat.
[ +1 ms] C:\Users\fuldr\Desktop\Fuldrex\flutter\android\gradlew.bat mode: 33279 rwxrwxrwx.
[ +6 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +75 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +1 ms] openjdk version "1.8.0_242-release"
OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[ +4 ms] executing: [C:\Users\fuldr\Desktop\Fuldrex\flutter\android/] C:\Users\fuldr\Desktop\Fuldrex\flutter\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm,android-arm64,android-x64
-Ptarget=lib\main.dart -Ptrack-widget-creation=true -Pshrink=true assembleRelease
[+2034 ms] > Task :admob_flutter:preBuild UP-TO-DATE
[ ] > Task :admob_flutter:preReleaseBuild UP-TO-DATE
[ ] > Task :admob_flutter:compileReleaseAidl NO-SOURCE
[ +84 ms] > Task :admob_flutter:checkReleaseManifest UP-TO-DATE
[ +1 ms] > Task :admob_flutter:compileReleaseRenderscript NO-SOURCE
[ ] > Task :admob_flutter:generateReleaseBuildConfig UP-TO-DATE
[ +5 ms] > Task :admob_flutter:generateReleaseResValues UP-TO-DATE
[ ] > Task :admob_flutter:generateReleaseResources UP-TO-DATE
[ ] > Task :admob_flutter:processReleaseManifest UP-TO-DATE
[ ] > Task :admob_flutter:packageReleaseResources UP-TO-DATE
[ ] > Task :admob_flutter:generateReleaseRFile UP-TO-DATE
[ ] > Task :admob_flutter:compileReleaseKotlin UP-TO-DATE
[ +1 ms] > Task :admob_flutter:prepareLintJar UP-TO-DATE
[ ] > Task :admob_flutter:generateReleaseSources UP-TO-DATE
[ +1 ms] > Task :admob_flutter:javaPreCompileRelease UP-TO-DATE
[ ] > Task :admob_flutter:compileReleaseJavaWithJavac UP-TO-DATE
[ ] > Task :admob_flutter:extractReleaseAnnotations UP-TO-DATE
[ ] > Task :admob_flutter:mergeReleaseConsumerProguardFiles UP-TO-DATE
[ ] > Task :admob_flutter:mergeReleaseShaders UP-TO-DATE
[ ] > Task :admob_flutter:compileReleaseShaders UP-TO-DATE
[ ] > Task :admob_flutter:generateReleaseAssets UP-TO-DATE
[ ] > Task :admob_flutter:packageReleaseAssets UP-TO-DATE
[ ] > Task :admob_flutter:packageReleaseRenderscript NO-SOURCE
[ ] > Task :admob_flutter:prepareLintJarForPublish UP-TO-DATE
[ ] > Task :admob_flutter:processReleaseJavaRes NO-SOURCE
[ ] > Task :admob_flutter:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
[ ] > Task :admob_flutter:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
[ ] > Task :admob_flutter:mergeReleaseJniLibFolders UP-TO-DATE
[ ] > Task :admob_flutter:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
[ ] > Task :admob_flutter:transformNativeLibsWithSyncJniLibsForRelease UP-TO-DATE
[ ] > Task :admob_flutter:bundleReleaseAar UP-TO-DATE
[ ] > Task :admob_flutter:compileReleaseSources UP-TO-DATE
[ +59 ms] > Task :admob_flutter:mergeReleaseResources UP-TO-DATE
[ ] > Task :admob_flutter:verifyReleaseResources UP-TO-DATE
[ ] > Task :admob_flutter:assembleRelease UP-TO-DATE
[ ] > Task :admob_flutter:bundleLibCompileRelease UP-TO-DATE
[+4699 ms] > Task :app:compileFlutterBuildRelease
[ +3 ms] [ +15 ms] executing: [C:\Users\fuldr\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] [ +38 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] [ ] b041144f833e05cf463b8887fa12efdec9493488
[ ] [ ] executing: [C:\Users\fuldr\flutter/] git tag --contains HEAD
[ ] [ +150 ms] Exit code 0 from: git tag --contains HEAD
[ ] [ ] 1.17.3
[ ] [ +6 ms] executing: [C:\Users\fuldr\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ +22 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ ] origin/stable
[ ] [ ] executing: [C:\Users\fuldr\flutter/] git ls-remote --get-url origin
[ ] [ +19 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] [ ] https://github.com/flutter/flutter.git
[ ] [ +69 ms] executing: [C:\Users\fuldr\flutter/] git rev-parse --abbrev-ref HEAD
[ ] [ +21 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] [ ] stable
[ ] [ +25 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ +8 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ +2 ms] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ +3 ms] [ +3 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ +6 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] [ +65 ms] Initializing file store
[ ] [ +3 ms] Done initializing file store
[ ] [+1379 ms] kernel_snapshot: Starting due to {InvalidatedReason.inputChanged}
[ ] [ +11 ms] C:\Users\fuldr\flutter\bin\cache\dart-sdk\bin\dart.exe C:\Users\fuldr\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\fuldr\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk_product/ --target=flutter -Ddart.developer.causal_async_stacks=false -Ddart.vm.profile=false -Ddart.vm.product=true
--bytecode-options=source-positions --aot --tfa --packages C:\Users\fuldr\Desktop\Fuldrex\flutter\.packages --output-dill
C:\Users\fuldr\Desktop\Fuldrex\flutter\.dart_tool\flutter_build\bb535099c746b9ab4702c943460e4aea\app.dill --depfile
C:\Users\fuldr\Desktop\Fuldrex\flutter\.dart_tool\flutter_build\bb535099c746b9ab4702c943460e4aea\kernel_snapshot.d package:streamapp/main.dart
[ +5 ms] [+1513 ms]
[ +2 ms] Compiler message:
[ ] [ +1 ms] ../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.5.0/lib/src/provider/flutter_advanced_networkimage.dart:143:24: Error: The method
'AdvancedNetworkImage.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'.
[ ] [ ] ImageStreamCompleter load(AdvancedNetworkImage key) {
[ ] [ ] ^
[ ] [ ] ../../../flutter/packages/flutter/lib/src/painting/image_provider.dart:574:24: Context: This is the overridden method ('load').
[ ] [ ] ImageStreamCompleter load(T key, DecoderCallback decode);
[ ] [ ] ^
[+1543 ms] [+2463 ms] ../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_svg-0.13.1/lib/src/picture_stream.dart:92:3: Error: The superclass, 'Diagnosticable', has no unnamed constructor that takes
no arguments.
[ +1 ms] [ ] PictureStream();
[ +1 ms] [ ] ^^^^^^^^^^^^^
[ +315 ms] [ +348 ms] ../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_svg-0.13.1/lib/src/picture_stream.dart:192:16: Error: The superclass, 'Diagnosticable', has no unnamed constructor that
takes no arguments.
[ +2 ms] [ ] abstract class PictureStreamCompleter extends Diagnosticable {
[ ] [ ] ^
[+1891 ms] [+1835 ms] Persisting file store
[ ] [ +15 ms] Done persisting file store
[ ] [ +6 ms] "flutter assemble" took 7.471ms.
[ ] [ +1 ms] Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
[ ] build failed.
[ ] #0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
[ +4 ms] #1 AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:202:7)
[ ] #2 _rootRunUnary (dart:async/zone.dart:1192:38)
[ +1 ms] #3 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
[ +1 ms] #4 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
[ +1 ms] #5 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
[ +1 ms] #6 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
[ +2 ms] #7 Future._completeWithValue (dart:async/future_impl.dart:526:5)
[ +2 ms] #8 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
[ ] #9 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
[ +1 ms] #10 BuildSystem.build (package:flutter_tools/src/build_system/build_system.dart)
[ ] #11 _rootRunUnary (dart:async/zone.dart:1192:38)
[ ] #12 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
[ ] #13 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
[ +1 ms] #14 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
[ ] #15 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
[ ] #16 Future._completeWithValue (dart:async/future_impl.dart:526:5)
[ ] #17 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
[ ] #18 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
[ ] #19 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart)
[ ] #20 _rootRunUnary (dart:async/zone.dart:1192:38)
[ ] #21 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
[ ] #22 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
[ ] #23 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
[ ] #24 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
[ ] #25 Future._completeWithValue (dart:async/future_impl.dart:526:5)
[ ] #26 Future.wait.<anonymous closure> (dart:async/future.dart:402:22)
[ ] #27 _rootRunUnary (dart:async/zone.dart:1192:38)
[ ] #28 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
[ ] #29 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
[ ] #30 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
[ ] #31 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
[ ] #32 Future._completeWithValue (dart:async/future_impl.dart:526:5)
[ ] #33 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
[ ] #34 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
[ ] #35 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart)
[ ] #36 _rootRunUnary (dart:async/zone.dart:1192:38)
[ ] #37 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
[ ] #38 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
[ ] #39 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
[ ] #40 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
[ ] #41 Future._completeWithValue (dart:async/future_impl.dart:526:5)
[ ] #42 Future.wait.<anonymous closure> (dart:async/future.dart:402:22)
[ ] #43 _rootRunUnary (dart:async/zone.dart:1192:38)
[ ] #44 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
[ ] #45 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
[ ] #46 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
[ +2 ms] #47 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
[ ] #48 Future._completeWithValue (dart:async/future_impl.dart:526:5)
[ ] #49 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
[ ] #50 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
[ ] #51 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart)
[ ] #52 _rootRunUnary (dart:async/zone.dart:1192:38)
[ +1 ms] #53 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
[ +98 ms] #54 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
[ +1 ms] #55 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
[ ] #56 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
[ ] #57 Future._completeWithValue (dart:async/future_impl.dart:526:5)
[ ] #58 Future.wait.<anonymous closure> (dart:async/future.dart:402:22)
[ ] #59 _rootRunUnary (dart:async/zone.dart:1192:38)
[ ] #60 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
[ ] #61 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
[ ] #62 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
[ ] #63 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
[ ] #64 Future._completeWithValue (dart:async/future_impl.dart:526:5)
[ ] #65 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
[ ] #66 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
[ ] #67 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart)
[ ] #68 _asyncErrorWrapperHelper.errorCallback (dart:async-patch/async_patch.dart:86:61)
[ ] #69 _rootRunBinary (dart:async/zone.dart:1204:38)
[ ] #70 _CustomZone.runBinary (dart:async/zone.dart:1093:19)
[ ] #71 _FutureListener.handleError (dart:async/future_impl.dart:155:20)
[ ] #72 Future._propagateToListeners.handleError (dart:async/future_impl.dart:694:47)
[ +1 ms] #73 Future._propagateToListeners (dart:async/future_impl.dart:715:24)
[ ] #74 Future._completeError (dart:async/future_impl.dart:534:5)
[ ] #75 _AsyncAwaitCompleter.completeError (dart:async-patch/async_patch.dart:43:15)
[ ] #76 KernelSnapshot.build (package:flutter_tools/src/build_system/targets/dart.dart)
[ ] #77 _rootRunUnary (dart:async/zone.dart:1192:38)
[ ] #78 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
[ ] #79 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
[ ] #80 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
[ ] #81 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
[ ] #82 Future._completeWithValue (dart:async/future_impl.dart:526:5)
[ ] #83 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
[ ] #84 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
[ ] #85 KernelCompiler.compile (package:flutter_tools/src/compile.dart)
[ ] #86 _rootRunUnary (dart:async/zone.dart:1192:38)
[ ] #87 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
[ ] #88 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
[ ] #89 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
[ ] #90 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
[ ] #91 Future._completeWithValue (dart:async/future_impl.dart:526:5)
[ ] #92 Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:556:7)
[ ] #93 _rootRun (dart:async/zone.dart:1184:13)
[ ] #94 _CustomZone.run (dart:async/zone.dart:1077:19)
[ ] #95 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
[ ] #96 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
[ ] #97 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
[ ] #98 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
[ ] #99 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
[ ] #100 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
[ ] FAILURE: Build failed with an exception.
[ +1 ms] * Where:
[ ] Script 'C:\Users\fuldr\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 882
[ ] * What went wrong:
[ ] Execution failed for task ':app:compileFlutterBuildRelease'.
[ +1 ms] > Process 'command 'C:\Users\fuldr\flutter\bin\flutter.bat'' finished with non-zero exit value 1
[ +1 ms] * Try:
[ +3 ms] 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.
[ +5 ms] * Get more help at https://help.gradle.org
[ +15 ms] BUILD FAILED in 11s
[ +1 ms] > Task :app:compileFlutterBuildRelease FAILED
[ ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
[ ] Use '--warning-mode all' to show the individual deprecation warnings.
[ ] See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
[ ] 26 actionable tasks: 1 executed, 25 up-to-date
[ +930 ms] Running Gradle task 'assembleRelease'... (completed in 11,9s)
[ +5 ms] "flutter apk" took 12.250ms.
Gradle task assembleRelease failed with exit code 1
#0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1 buildGradleApp (package:flutter_tools/src/android/gradle.dart:407:7)
#2 _rootRunUnary (dart:async/zone.dart:1192:38)
#3 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#4 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#5 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#6 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#7 Future._completeWithValue (dart:async/future_impl.dart:526:5)
#8 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15)
#9 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13)
#10 _DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart)
#11 _rootRunUnary (dart:async/zone.dart:1192:38)
#12 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#13 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#14 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#15 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#16 Future._completeWithValue (dart:async/future_impl.dart:526:5)
#17 Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:556:7)
#18 _rootRun (dart:async/zone.dart:1184:13)
#19 _CustomZone.run (dart:async/zone.dart:1077:19)
#20 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#21 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
#22 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#23 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#24 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#25 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5) My file pubspec.yaml: logsname: streamapp
description: A new Flutter project.
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build 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/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1
environment:
sdk: ">=2.3.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
firebase_analytics: ^5.0.2
firebase_messaging: ^5.1.5
firebase_admob: ^0.9.0+7
admob_flutter: ^0.3.1
provider: ^3.1.0
http: ^0.12.0+2
share: ^0.6.2+1
shared_preferences: ^0.5.3+4
flutter_svg: ^0.13.0
flutter_swiper: ^1.1.6
flutter_webview_plugin: ^0.3.7
flutter_advanced_networkimage: ^0.5.0
pull_to_refresh: ^1.5.6
video_player: ^0.10.2+1
screen: ^0.0.5
dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: ^0.7.3
flutter_icons:
android: "ic_launcher"
ios: true
image_path: "assets/icon/icon.png"
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/img/
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To 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 a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
|
Hi @fabiomalinconi Thank you |
flutter build apk --release: logsYou 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
Compiler message:
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.5.0/lib/provider.dart:4:1: Error: Error when reading '../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_ad
vanced_networkimage-0.5.0/lib/src/provider/flutter_advanced_networkimage.dart': Impossibile trovare il file specificato.
export 'package:flutter_advanced_networkimage/src/provider/flutter_advanced_networkimage.dart';
^
lib/src/views/livetv_detail_view.dart:68:24: Error: The method 'AdvancedNetworkImage' isn't defined for the class '_LivetvDetailState'.
- '_LivetvDetailState' is from 'package:streamapp/src/views/livetv_detail_view.dart' ('lib/src/views/livetv_detail_view.dart').
Try correcting the name to the name of an existing method, or defining a method named 'AdvancedNetworkImage'.
image: AdvancedNetworkImage(livetv.getPoster(),
^^^^^^^^^^^^^^^^^^^^
lib/src/views/serie_detail_view.dart:246:28: Error: The method 'AdvancedNetworkImage' isn't defined for the class '_SerieDetailState'.
- '_SerieDetailState' is from 'package:streamapp/src/views/serie_detail_view.dart' ('lib/src/views/serie_detail_view.dart').
Try correcting the name to the name of an existing method, or defining a method named 'AdvancedNetworkImage'.
image: AdvancedNetworkImage(episodes[i].getStill(),
^^^^^^^^^^^^^^^^^^^^
lib/src/widgets/custom_logo_widget.dart:49:20: Error: The method 'AdvancedNetworkImage' isn't defined for the class '_CustomLogoState'.
- '_CustomLogoState' is from 'package:streamapp/src/widgets/custom_logo_widget.dart' ('lib/src/widgets/custom_logo_widget.dart').
Try correcting the name to the name of an existing method, or defining a method named 'AdvancedNetworkImage'.
image: AdvancedNetworkImage(Api.url + 'image/logo',
^^^^^^^^^^^^^^^^^^^^
lib/src/helpers/search.dart:140:40: Error: The method 'AdvancedNetworkImage' isn't defined for the class 'Search'.
- 'Search' is from 'package:streamapp/src/helpers/search.dart' ('lib/src/helpers/search.dart').
Try correcting the name to the name of an existing method, or defining a method named 'AdvancedNetworkImage'.
image: AdvancedNetworkImage(
^^^^^^^^^^^^^^^^^^^^
lib/src/widgets/custom_sliver_appbar_widget.dart:52:24: Error: The method 'AdvancedNetworkImage' isn't defined for the class 'CustomSliverAppBar'.
- 'CustomSliverAppBar' is from 'package:streamapp/src/widgets/custom_sliver_appbar_widget.dart' ('lib/src/widgets/custom_sliver_appbar_widget.dart').
Try correcting the name to the name of an existing method, or defining a method named 'AdvancedNetworkImage'.
image: AdvancedNetworkImage(image, useDiskCache: true),
^^^^^^^^^^^^^^^^^^^^
lib/src/widgets/custom_poster.dart:32:16: Error: The method 'AdvancedNetworkImage' isn't defined for the class 'CustomPoster'.
- 'CustomPoster' is from 'package:streamapp/src/widgets/custom_poster.dart' ('lib/src/widgets/custom_poster.dart').
Try correcting the name to the name of an existing method, or defining a method named 'AdvancedNetworkImage'.
image: AdvancedNetworkImage(image, useDiskCache: true),
^^^^^^^^^^^^^^^^^^^^
lib/src/widgets/material_poster_widget.dart:75:18: Error: The method 'AdvancedNetworkImage' isn't defined for the class 'MaterialPoster'.
- 'MaterialPoster' is from 'package:streamapp/src/widgets/material_poster_widget.dart' ('lib/src/widgets/material_poster_widget.dart').
Try correcting the name to the name of an existing method, or defining a method named 'AdvancedNetworkImage'.
image: AdvancedNetworkImage(image, useDiskCache: true),
^^^^^^^^^^^^^^^^^^^^
lib/src/widgets/carousel_movies_widget.dart:60:32: Error: The method 'AdvancedNetworkImage' isn't defined for the class 'CarouselMovies'.
- 'CarouselMovies' is from 'package:streamapp/src/widgets/carousel_movies_widget.dart' ('lib/src/widgets/carousel_movies_widget.dart').
Try correcting the name to the name of an existing method, or defining a method named 'AdvancedNetworkImage'.
image: AdvancedNetworkImage(
^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.5.0/lib/src/transition/transition_to_image.dart:334:27: Error: 'AdvancedNetworkImage' isn't a type.
if (_imageProvider is AdvancedNetworkImage &&
^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.5.0/lib/src/transition/transition_to_image.dart:336:41: Error: 'AdvancedNetworkImage' isn't a type.
var callback = (_imageProvider as AdvancedNetworkImage).loadingProgress;
^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.5.0/lib/src/transition/transition_to_image.dart:337:26: Error: 'AdvancedNetworkImage' isn't a type.
(_imageProvider as AdvancedNetworkImage).loadingProgress =
^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_svg-0.13.1/lib/src/picture_stream.dart:92:3: Error: The superclass, 'Diagnosticable', has no unnamed constructor that takes no arguments.
PictureStream();
^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_svg-0.13.1/lib/src/picture_stream.dart:192:16: Error: The superclass, 'Diagnosticable', has no unnamed constructor that takes no arguments.
abstract class PictureStreamCompleter extends Diagnosticable {
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
FAILURE: Build failed with an exception.
* Where:
Script 'C:\Users\fuldr\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 882
* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\Users\fuldr\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 10s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 11,4s
Gradle task assembleRelease failed with exit code 1 |
Hi @fabiomalinconi Also, if I understand correctly you the app from a developer Finally, if this app is a purchased commercial product |
Without additional information we are unfortunately not sure how to resolve this issue. |
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 |
After I started
flutter build apk --release
, the program gives me errors:logs
I using StreamApp Template purchased on the EnvatoMarket, How I fix it?
The text was updated successfully, but these errors were encountered: