Skip to content
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

Gradle task assembleFossDebug failed with exit code 1 #47239

Closed
kamrancr7 opened this issue Dec 17, 2019 · 3 comments
Closed

Gradle task assembleFossDebug failed with exit code 1 #47239

kamrancr7 opened this issue Dec 17, 2019 · 3 comments

Comments

@kamrancr7
Copy link

kamrancr7 commented Dec 17, 2019

After upgrading Flutter from 1.9.7 to v1.12.13+hotfix.5 my application build failed. following is the complete log:

logs
C:\flutter_projects\my_branch\iamflexi_app>flutter run --flavor foss -v
[  +27 ms] executing: [C:\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +68 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 27321ebbad34b0a3fafe99fac037102196d655ff
[        ] executing: [C:\flutter\] git describe --match v*.*.* --first-parent --long --tags
[  +53 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.12.13+hotfix.5-0-g27321ebba
[  +10 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[  +45 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\flutter\] git ls-remote --get-url origin
[  +48 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +159 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref HEAD
[  +69 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[ +150 ms] executing: C:\Users\Kamran\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[ +302 ms] Exit code 0 from: C:\Users\Kamran\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[        ] List of devices attached
           DMUGUK9DMZJBHIVW       device product:CPH1819 model:CPH1819 device:CPH1819 transport_id:1
[  +15 ms] C:\Users\Kamran\AppData\Local\Android\sdk\platform-tools\adb.exe -s DMUGUK9DMZJBHIVW shell getprop
[ +126 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +4 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.
[   +3 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.
[  +33 ms] Found plugin android_intent at C:\flutter\.pub-cache\hosted\pub.dartlang.org\android_intent-0.3.4+7\
[  +17 ms] Found plugin camera at C:\flutter\.pub-cache\hosted\pub.dartlang.org\camera-0.5.7+1\
[  +24 ms] Found plugin file_picker at C:\flutter\.pub-cache\hosted\pub.dartlang.org\file_picker-1.4.3+1\
[   +2 ms] Found plugin firebase_messaging at C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_messaging-6.0.3\
[   +8 ms] Found plugin flutter_keyboard_visibility at C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_keyboard_visibility-0.7.0\
[   +2 ms] Found plugin flutter_local_notifications at C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_local_notifications-0.8.4+3\
[   +9 ms] Found plugin flutter_statusbarcolor at C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_statusbarcolor-0.2.3\
[  +11 ms] Found plugin geolocator at C:\flutter\.pub-cache\hosted\pub.dartlang.org\geolocator-5.1.5\
[   +1 ms] Found plugin google_api_availability at C:\flutter\.pub-cache\hosted\pub.dartlang.org\google_api_availability-2.0.1\
[   +6 ms] Found plugin image_picker at C:\flutter\.pub-cache\hosted\pub.dartlang.org\image_picker-0.6.2+2\
[   +7 ms] Found plugin location_permissions at C:\flutter\.pub-cache\hosted\pub.dartlang.org\location_permissions-2.0.3\
[  +10 ms] Found plugin path_provider at C:\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-1.5.0\
[  +27 ms] Found plugin share at C:\flutter\.pub-cache\hosted\pub.dartlang.org\share-0.6.3+4\
[   +2 ms] Found plugin shared_preferences at C:\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+8\
[  +12 ms] Found plugin sqflite at C:\flutter\.pub-cache\hosted\pub.dartlang.org\sqflite-1.1.8\
[  +19 ms] Found plugin url_launcher at C:\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher-5.2.7\
[  +59 ms] Found plugin android_intent at C:\flutter\.pub-cache\hosted\pub.dartlang.org\android_intent-0.3.4+7\
[   +7 ms] Found plugin camera at C:\flutter\.pub-cache\hosted\pub.dartlang.org\camera-0.5.7+1\
[  +18 ms] Found plugin file_picker at C:\flutter\.pub-cache\hosted\pub.dartlang.org\file_picker-1.4.3+1\
[   +1 ms] Found plugin firebase_messaging at C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_messaging-6.0.3\
[   +6 ms] Found plugin flutter_keyboard_visibility at C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_keyboard_visibility-0.7.0\
[   +2 ms] Found plugin flutter_local_notifications at C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_local_notifications-0.8.4+3\
[   +8 ms] Found plugin flutter_statusbarcolor at C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_statusbarcolor-0.2.3\
[   +7 ms] Found plugin geolocator at C:\flutter\.pub-cache\hosted\pub.dartlang.org\geolocator-5.1.5\
[   +1 ms] Found plugin google_api_availability at C:\flutter\.pub-cache\hosted\pub.dartlang.org\google_api_availability-2.0.1\
[   +5 ms] Found plugin image_picker at C:\flutter\.pub-cache\hosted\pub.dartlang.org\image_picker-0.6.2+2\
[   +5 ms] Found plugin location_permissions at C:\flutter\.pub-cache\hosted\pub.dartlang.org\location_permissions-2.0.3\
[   +7 ms] Found plugin path_provider at C:\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-1.5.0\
[  +11 ms] Found plugin share at C:\flutter\.pub-cache\hosted\pub.dartlang.org\share-0.6.3+4\
[   +1 ms] Found plugin shared_preferences at C:\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-0.5.4+8\
[   +9 ms] Found plugin sqflite at C:\flutter\.pub-cache\hosted\pub.dartlang.org\sqflite-1.1.8\
[  +10 ms] Found plugin url_launcher at C:\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher-5.2.7\
[  +75 ms] Generating C:\flutter_projects\my_branch\iamflexi_app\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +48 ms] ro.hardware = mt6771
[        ] ro.build.characteristics = default
[  +81 ms] Launching lib\main.dart on CPH1819 in debug mode...
[  +22 ms] executing: C:\Users\Kamran\AppData\Local\Android\sdk\platform-tools\adb.exe -s DMUGUK9DMZJBHIVW shell -x logcat -v time -s flutter
[  +10 ms] executing: C:\Users\Kamran\AppData\Local\Android\sdk\platform-tools\adb.exe version
[  +61 ms] Android Debug Bridge version 1.0.41
           Version 29.0.5-5949299
           Installed as C:\Users\Kamran\AppData\Local\Android\sdk\platform-tools\adb.exe
[   +4 ms] executing: C:\Users\Kamran\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[  +33 ms] Building APK
[  +28 ms] Running Gradle task 'assembleFossDebug'...
[   +3 ms] gradle.properties already sets `android.enableR8`
[  +15 ms] Using gradle from C:\flutter_projects\my_branch\iamflexi_app\android\gradlew.bat.
[  +41 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +148 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[   +1 ms] openjdk version "1.8.0_202-release"
           OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
           OpenJDK 64-Bit Server VM (build 25.202-b03, mixed mode)
[   +4 ms] executing: [C:\flutter_projects\my_branch\iamflexi_app\android\] C:\flutter_projects\my_branch\iamflexi_app\android\gradlew.bat -Pverbose=true
-Ptarget=C:\flutter_projects\my_branch\iamflexi_app\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-arm64
assembleFossDebug
[+2408 ms] > Configure project :app
[ +646 ms] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[  +41 ms] The current default is 'false'
[   +1 ms] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[   +4 ms] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[   +1 ms] > Configure project :android_intent
[        ] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[   +1 ms] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[   +1 ms] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[        ] > Configure project :camera
[   +1 ms] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[   +5 ms] > Configure project :core
[        ] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[ +139 ms] > Configure project :draw
[ +274 ms] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[ +389 ms] The current default is 'false'
[ +234 ms] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[ +204 ms] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[        ] > Configure project :emoji
[        ] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[  +28 ms] The current default is 'false'
[   +5 ms] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[   +1 ms] The current default is 'false'
[  +99 ms] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[ +169 ms] > Configure project :file_picker
[  +15 ms] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[   +2 ms] > Configure project :firebase_messaging
[   +1 ms] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[   +7 ms] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[        ] > Configure project :flutter_keyboard_visibility
[        ] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[   +2 ms] > Configure project :flutter_local_notifications
[        ] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[        ] > Configure project :flutter_statusbarcolor
[   +8 ms] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[  +90 ms] The current default is 'false'
[   +1 ms] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[   +5 ms] The current default is 'false'
[   +2 ms] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[   +3 ms] > Configure project :geolocator
[        ] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[        ] > Configure project :google_api_availability
[        ] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[   +3 ms] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[   +3 ms] > Configure project :image_picker
[        ] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[   +1 ms] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[   +1 ms] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[   +1 ms] > Configure project :location_permissions
[        ] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[   +1 ms] > Configure project :path_provider
[        ] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[   +1 ms] The current default is 'false'
[  +10 ms] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[   +1 ms] > Configure project :player
[   +2 ms] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[        ] > Configure project :share
[        ] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[        ] > Configure project :shared_preferences
[   +1 ms] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[   +1 ms] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[        ] > Configure project :sqflite
[        ] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[        ] > Configure project :suggestions
[        ] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[  +60 ms] > Configure project :url_launcher
[   +1 ms] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[ +217 ms] > Configure project :util
[   +8 ms] WARNING: The option setting 'android.overridePathCheck=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] WARNING: The option setting 'android.enableR8=true' is experimental and unsupported.
[        ] The current default is 'false'
[        ] Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.
[+2907 ms] > Task :android_intent:preBuild UP-TO-DATE
[   +2 ms] > Task :android_intent:preDebugBuild UP-TO-DATE
[        ] > Task :android_intent:compileDebugAidl NO-SOURCE
[        ] > Task :android_intent:checkDebugManifest UP-TO-DATE
[   +2 ms] > Task :android_intent:compileDebugRenderscript UP-TO-DATE
[   +1 ms] > Task :android_intent:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :android_intent:generateDebugResValues UP-TO-DATE
[        ] > Task :android_intent:generateDebugResources UP-TO-DATE
[        ] > Task :android_intent:packageDebugResources UP-TO-DATE
[        ] > Task :android_intent:processDebugManifest UP-TO-DATE
[        ] > Task :android_intent:generateDebugRFile UP-TO-DATE
[        ] > Task :android_intent:prepareLintJar UP-TO-DATE
[        ] > Task :android_intent:generateDebugSources UP-TO-DATE
[   +8 ms] > Task :android_intent:javaPreCompileDebug UP-TO-DATE
[        ] > Task :android_intent:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :android_intent:processDebugJavaRes NO-SOURCE
[        ] > Task :android_intent:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
[+2032 ms] > Task :app:compileFlutterBuildFossDebug
[   +1 ms] [  +24 ms] executing: [C:\flutter\] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +58 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 27321ebbad34b0a3fafe99fac037102196d655ff
[        ] [        ] executing: [C:\flutter\] git describe --match v*.*.* --first-parent --long --tags
[        ] [  +43 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] [        ] v1.12.13+hotfix.5-0-g27321ebba
[        ] [   +7 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [  +39 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [C:\flutter\] git ls-remote --get-url origin
[        ] [  +46 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +94 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref HEAD
[   +1 ms] [  +47 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.
[        ] [   +3 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.
[   +1 ms] [ +145 ms] Initializing file store
[        ] [  +23 ms] kernel_snapshot: Starting due to {}
[        ] [  +31 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts
--track-widget-creation --no-link-platform --packages C:\flutter_projects\my_branch\iamflexi_app\.packages --output-dill
C:\flutter_projects\my_branch\iamflexi_app\.dart_tool\flutter_build\b802bf15b369ab99bc8b15181f01159f\app.dill --depfile
C:\flutter_projects\my_branch\iamflexi_app\.dart_tool\flutter_build\b802bf15b369ab99bc8b15181f01159f\kernel_snapshot.d package:iamflexi_app/main.dart
[ +581 ms] [+1340 ms] 
[   +1 ms]            Compiler message:
[        ] [   +1 ms] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_map-0.7.3/lib/src/layer/tile_provider/tile_provider.dart:3:8: Error: Error when reading
'/C:/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-1.1.3/lib/cached_network_image.dart': The system cannot find the path specified.
[   +1 ms] [        ] import 'package:cached_network_image/cached_network_image.dart';
[        ] [        ]        ^
[+1095 ms] [+1109 ms] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_map-0.7.3/lib/src/layer/tile_provider/mbtiles_image_provider.dart:90:24: Error: The method
'MBTileImage.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'.
[   +1 ms] [        ]   ImageStreamCompleter load(MBTileImage key) {
[        ] [        ]                        ^
[        ] [        ] /C:/flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24: Context: This is the overridden method ('load').
[        ] [        ]   ImageStreamCompleter load(T key, DecoderCallback decode);
[        ] [        ]                        ^
[        ] [        ] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image-2.0.0/lib/network.dart:73:24: Error: The method 'NetworkImageWithRetry.load' has fewer
positional arguments than those of overridden method 'ImageProvider.load'.
[   +1 ms] [        ]   ImageStreamCompleter load(NetworkImageWithRetry key) {
[        ] [        ]                        ^
[        ] [        ] /C:/flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24: Context: This is the overridden method ('load').
[        ] [        ]   ImageStreamCompleter load(T key, DecoderCallback decode);
[        ] [        ]                        ^
[+3499 ms] [+3554 ms] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_map-0.7.3/lib/src/layer/tile_provider/tile_provider.dart:51:12: Error: The method
'CachedNetworkImageProvider' isn't defined for the class 'CachedNetworkTileProvider'.
[   +2 ms] [        ]  - 'CachedNetworkTileProvider' is from 'package:flutter_map/src/layer/tile_provider/tile_provider.dart'
('/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_map-0.7.3/lib/src/layer/tile_provider/tile_provider.dart').
[   +1 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'CachedNetworkImageProvider'.
[        ] [        ]     return CachedNetworkImageProvider(getTileUrl(coords, options));
[        ] [        ]            ^^^^^^^^^^^^^^^^^^^^^^^^^^
[+3797 ms] [+3740 ms] Persisting file store
[   +9 ms] [   +6 ms] Done persisting file store
[   +1 ms] [   +1 ms] Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
[   +2 ms] build failed.
[   +2 ms] [  +10 ms] "flutter assemble" took 10,053ms.
[   +2 ms] #0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
[   +1 ms] #1      AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:183:7)
[   +3 ms] <asynchronous suspension>
[   +1 ms] #2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:615:18)
[        ] <asynchronous suspension>
[   +2 ms] #3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:515:33)
[        ] <asynchronous suspension>
[        ] #4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
[        ] #5      _rootRun (dart:async/zone.dart:1126:13)
[        ] #6      _CustomZone.run (dart:async/zone.dart:1023:19)
[        ] #7      _runZoned (dart:async/zone.dart:1518:10)
[        ] #8      runZoned (dart:async/zone.dart:1465:12)
[        ] #9      AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
[        ] #10     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:505:20)
[        ] #11     CommandRunner.runCommand (package:args/command_runner.dart:197:27)
[   +2 ms] #12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:413:21)
[        ] <asynchronous suspension>
[   +1 ms] #13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
[   +3 ms] #14     _rootRun (dart:async/zone.dart:1126:13)
[        ] #15     _CustomZone.run (dart:async/zone.dart:1023:19)
[        ] #16     _runZoned (dart:async/zone.dart:1518:10)
[        ] #17     runZoned (dart:async/zone.dart:1465:12)
[        ] #18     AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
[        ] #19     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:19)
[        ] #20     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
[        ] #21     new Future.sync (dart:async/future.dart:224:31)
[        ] #22     CommandRunner.run (package:args/command_runner.dart:112:14)
[        ] #23     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:250:18)
[        ] #24     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:63:22)
[        ] #25     _rootRun (dart:async/zone.dart:1126:13)
[   +2 ms] #26     _CustomZone.run (dart:async/zone.dart:1023:19)
[   +9 ms] > Task :app:compileFlutterBuildFossDebug FAILED
[   +1 ms] #27     _runZoned (dart:async/zone.dart:1518:10)
[        ] #28     runZoned (dart:async/zone.dart:1502:12)
[        ] #29     run.<anonymous closure> (package:flutter_tools/runner.dart:61:18)
[        ] <asynchronous suspension>
[   +3 ms] #30     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:146:29)
[        ] #31     _rootRun (dart:async/zone.dart:1126:13)
[        ] #32     _CustomZone.run (dart:async/zone.dart:1023:19)
[   +1 ms] #33     _runZoned (dart:async/zone.dart:1518:10)
[        ] #34     runZoned (dart:async/zone.dart:1465:12)
[        ] #35     AppContext.run (package:flutter_tools/src/base/context.dart:145:18)
[        ] #36     runInContext (package:flutter_tools/src/context_runner.dart:64:24)
[        ] #37     run (package:flutter_tools/runner.dart:50:10)
[        ] #38     main (package:flutter_tools/executable.dart:65:9)
[        ] #39     main (file:///C:/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
[        ] #40     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:32)
[        ] #41     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
[  +10 ms] FAILURE: Build failed with an exception.
[   +1 ms] * Where:
[   +1 ms] Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780
[   +1 ms] * What went wrong:
[        ] Execution failed for task ':app:compileFlutterBuildFossDebug'.
[   +1 ms] > Process 'command 'C:\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.
[   +2 ms] * Get more help at https://help.gradle.org
[   +1 ms] BUILD FAILED in 18s
[   +2 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
[   +4 ms] 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
[        ] 12 actionable tasks: 1 executed, 11 up-to-date
[ +669 ms] Running Gradle task 'assembleFossDebug'... (completed in 20.1s)
[   +5 ms] "flutter run" took 21,561ms.
Gradle task assembleFossDebug failed with exit code 1

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      buildGradleApp (package:flutter_tools/src/android/gradle.dart:387:7)
#2      _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#3      _rootRunUnary (dart:async/zone.dart:1134:38)
#4      _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#5      _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#6      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#7      Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#8      Future._completeWithValue (dart:async/future_impl.dart:524:5)
#9      _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
#10     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:290:13)
#11     _DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart)
#12     _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:73:64)
#13     _rootRunUnary (dart:async/zone.dart:1134:38)
#14     _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#15     _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#16     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#17     Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#18     Future._completeWithValue (dart:async/future_impl.dart:524:5)
#19     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:554:7)
#20     _rootRun (dart:async/zone.dart:1126:13)
#21     _CustomZone.run (dart:async/zone.dart:1023:19)
#22     _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#23     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965:23)
#24     _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#25     _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#26     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#27     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:175:5)

and when i open application in android module then it gives me the following error:
org.gradle.process.internal.ExecException: Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

@iapicca
Copy link
Contributor

iapicca commented Dec 18, 2019

Hi @kamrancr7
given the error

[   +1 ms]            Compiler message:
[        ] [   +1 ms] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_map-0.7.3/lib/src/layer/tile_provider/tile_provider.dart:3:8: Error: Error when reading
'/C:/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-1.1.3/lib/cached_network_image.dart': The system cannot find the path specified.
[   +1 ms] [        ] import 'package:cached_network_image/cached_network_image.dart';
[        ] [        ]        ^
[+1095 ms] [+1109 ms] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_map-0.7.3/lib/src/layer/tile_provider/mbtiles_image_provider.dart:90:24: Error: The method
'MBTileImage.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'.
[   +1 ms] [        ]   ImageStreamCompleter load(MBTileImage key) {
[        ] [        ]                        ^
[        ] [        ] /C:/flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24: Context: This is the overridden method ('load').
[        ] [        ]   ImageStreamCompleter load(T key, DecoderCallback decode);
[        ] [        ]                        ^
[        ] [        ] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image-2.0.0/lib/network.dart:73:24: Error: The method 'NetworkImageWithRetry.load' has fewer
positional arguments than those of overridden method 'ImageProvider.load'.
[   +1 ms] [        ]   ImageStreamCompleter load(NetworkImageWithRetry key) {
[        ] [        ]                        ^
[        ] [        ] /C:/flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24: Context: This is the overridden method ('load').
[        ] [        ]   ImageStreamCompleter load(T key, DecoderCallback decode);
[        ] [        ]                        ^
[+3499 ms] [+3554 ms] /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_map-0.7.3/lib/src/layer/tile_provider/tile_provider.dart:51:12: Error: The method
'CachedNetworkImageProvider' isn't defined for the class 'CachedNetworkTileProvider'.
[   +2 ms] [        ]  - 'CachedNetworkTileProvider' is from 'package:flutter_map/src/layer/tile_provider/tile_provider.dart'
('/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_map-0.7.3/lib/src/layer/tile_provider/tile_provider.dart').
[   +1 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'CachedNetworkImageProvider'.
[        ] [        ]     return CachedNetworkImageProvider(getTileUrl(coords, options));
[        ] [        ]            ^^^^^^^^^^^^^^^^^^^^^^^^^^
[+3797 ms] [+3740 ms] Persisting file store
[   +9 ms] [   +6 ms] Done persisting file store
[   +1 ms] [   +1 ms] Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
[   +2 ms] build failed.

the issue might be related to the 3rd party plugin cached_network_image, you may want to open an issue on the dedicated github
Closing, as this isn't an issue with Flutter itself,
if you disagree please write in the comments and I will reopen it
Thank you

@iapicca iapicca closed this as completed Dec 18, 2019
@kamrancr7
Copy link
Author

@iapicca Thanks for your reply.
Yes the issue is from the following 3 packages:

@github-actions
Copy link

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 flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants