skip to Main Content

Android Studio – Exception is thrown when running flutter app, on assembleDebug Task. Tries to read file from non existing path that's not specified anywhere

Error Launching lib/main.dart on sdk gphone64 arm64 in debug mode... Running Gradle task 'assembleDebug'... E/flutter ( 6095): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Unable to load asset: assets/ This started happening out of nowhere, after the exception is thrown, the task still runs…

VIEW QUESTION

Android Studio – Flutter Error: Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because it is potentially null

Whenever I try to run flutter app, I am getting this error. ../flutter/.pub-cache/hosted/pub.dartlang.org/percent_indicator-4.2.1/lib/linear_percent_indicator.dart:162:5: Warning: The class 'WidgetsBinding' cannot be null. Try replacing '?.' with '.' WidgetsBinding?.instance.addPostFrameCallback((_) { ^^^^^^^^^^^^^^ ../flutter/.pub-cache/hosted/pub.dartlang.org/percent_indicator-4.2.1/lib/linear_percent_indicator.dart:162:30: Error: Method 'addPostFrameCallback' cannot be called on 'WidgetsBinding?' because it is…

VIEW QUESTION

Android Studio – Error in compilation with Geolocator pluggin

I'm getting the current error when compiling a project with Geolocator pluggin: C:srcflutter.pub-cachehostedpub.dartlang.orggeolocator_android-2.0.0androidsrcmainjavacombaseflowgeolocatorlocationLocationMapper.java:29: error: cannot find symbol if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { ^ symbol: variable S location: class VERSION_CODES C:srcflutter.pub-cachehostedpub.dartlang.orggeolocator_android-2.0.0androidsrcmainjavacombaseflowgeolocatorlocationLocationMapper.java:30: error: cannot find symbol position.put("is_mocked", location.isMock()); ^ symbol: method isMock()…

VIEW QUESTION
Back To Top
Search