flutter-folio icon indicating copy to clipboard operation
flutter-folio copied to clipboard

Web build successful but Android build error

Open nonnyzcsrt opened this issue 4 years ago • 2 comments

Porntheps-MacBook-Pro-686:lib nonnyzcsrt$ flutter run -d WCR7N18706004618 Changing current working directory to: /Users/nonnyzcsrt/FlutterSdk/flutter-folio Launching lib/main.dart on CLT L29 in debug mode... ../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_windows-0.0.1/lib/src/window.dart:36:7: Error: The non-abstract class 'WinWindow' is missing implementations for these members:

  • DesktopWindow.isVisible
  • DesktopWindow.visible
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class WinWindow extends DesktopWindow {
^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:26:12: Context: 'DesktopWindow.isVisible' is defined here. bool get isVisible;
^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:25:12: Context: 'DesktopWindow.visible' is defined here. bool get visible;
^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_macos-0.0.1/lib/src/window.dart:7:7: Error: The non-abstract class 'MacOSWindow' is missing implementations for these members:

  • DesktopWindow.isVisible
  • DesktopWindow.visible
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class MacOSWindow extends DesktopWindow {
^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:26:12: Context: 'DesktopWindow.isVisible' is defined here. bool get isVisible;
^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:25:12: Context: 'DesktopWindow.visible' is defined here. bool get visible;
^^^^^^^
../../.pub-cache/git/bitsdojo_window-b9b1658ab4ddc8b26f4438a3f20a1890a10db006/bitsdojo_window_linux/lib/src/window.dart:39:7: Error: The non-abstract class 'GtkWindow' is missing implementations for these members:

  • DesktopWindow.isVisible
  • DesktopWindow.visible
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class GtkWindow extends DesktopWindow {
^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:26:12: Context: 'DesktopWindow.isVisible' is defined here. bool get isVisible;
^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:25:12: Context: 'DesktopWindow.visible' is defined here. bool get visible;
^^^^^^^
../../.pub-cache/git/bitsdojo_window-b9b1658ab4ddc8b26f4438a3f20a1890a10db006/bitsdojo_window/lib/src/other_platform.dart:6:7: Error: The non-abstract class 'OtherWindow' is missing implementations for these members:

  • DesktopWindow.isVisible
  • DesktopWindow.visible
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class OtherWindow extends DesktopWindow {
^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:26:12: Context: 'DesktopWindow.isVisible' is defined here. bool get isVisible;
^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:25:12: Context: 'DesktopWindow.visible' is defined here. bool get visible;
^^^^^^^
../../.pub-cache/git/bitsdojo_window-b9b1658ab4ddc8b26f4438a3f20a1890a10db006/bitsdojo_window/lib/src/other_platform.dart:105:7: Error: The non-abstract class 'OtherAppWindow' is missing implementations for these members:

  • DesktopWindow.isVisible
  • DesktopWindow.visible
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class OtherAppWindow extends OtherWindow {
^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:26:12: Context: 'DesktopWindow.isVisible' is defined here. bool get isVisible;
^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:25:12: Context: 'DesktopWindow.visible' is defined here. bool get visible;
^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_windows-0.0.1/lib/src/app_window.dart:14:7: Error: The non-abstract class 'WinAppWindow' is missing implementations for these members:

  • DesktopWindow.isVisible
  • DesktopWindow.visible
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class WinAppWindow extends WinWindow {
^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:26:12: Context: 'DesktopWindow.isVisible' is defined here. bool get isVisible;
^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:25:12: Context: 'DesktopWindow.visible' is defined here. bool get visible;
^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_macos-0.0.1/lib/src/app_window.dart:6:7: Error: The non-abstract class 'MacAppWindow' is missing implementations for these members:

  • DesktopWindow.isVisible
  • DesktopWindow.visible
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class MacAppWindow extends MacOSWindow {
^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:26:12: Context: 'DesktopWindow.isVisible' is defined here. bool get isVisible;
^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:25:12: Context: 'DesktopWindow.visible' is defined here. bool get visible;
^^^^^^^
../../.pub-cache/git/bitsdojo_window-b9b1658ab4ddc8b26f4438a3f20a1890a10db006/bitsdojo_window_linux/lib/src/app_window.dart:14:7: Error: The non-abstract class 'GtkAppWindow' is missing implementations for these members:

  • DesktopWindow.isVisible
  • DesktopWindow.visible
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class GtkAppWindow extends GtkWindow {
^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:26:12: Context: 'DesktopWindow.isVisible' is defined here. bool get isVisible;
^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_platform_interface-0.0.2/lib/window.dart:25:12: Context: 'DesktopWindow.visible' is defined here. bool get visible;
^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1111:7: Error: Struct 'ENUMLOGFONTEX' is empty. Empty structs are undefined behavior. class ENUMLOGFONTEX extends Struct {
^
../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2835:7: Error: Struct 'BLUETOOTH_PIN_INFO' is empty. Empty structs are undefined behavior. class BLUETOOTH_PIN_INFO extends Struct {
^
../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2960:7: Error: Struct 'EXCEPINFO' is empty. Empty structs are undefined behavior. class EXCEPINFO extends Struct {}
^
../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2966:7: Error: Struct 'PROPERTYKEY' is empty. Empty structs are undefined behavior. class PROPERTYKEY extends Struct {}
^
../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2973:7: Error: Struct 'PROPVARIANT' is empty. Empty structs are undefined behavior. class PROPVARIANT extends Struct {}
^
../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2978:7: Error: Struct 'SAFEARRAY' is empty. Empty structs are undefined behavior. class SAFEARRAY extends Struct {}
^
../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2985:7: Error: Struct 'CLSID' is empty. Empty structs are undefined behavior. class CLSID extends Struct {}
^
../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2992:7: Error: Struct 'STATSTG' is empty. Empty structs are undefined behavior. class STATSTG extends Struct {}
^
../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2999:7: Error: Struct 'NLM_SIMULATED_PROFILE_INFO' is empty. Empty structs are undefined behavior. class NLM_SIMULATED_PROFILE_INFO extends Struct {}
^
../../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:23:7: Error: Struct 'Utf8' is empty. Empty structs are undefined behavior. class Utf8 extends Struct {
^
../../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf16.dart:16:7: Error: Struct 'Utf16' is empty. Empty structs are undefined behavior. class Utf16 extends Struct {
^
../../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/allocation.dart:47:33: Error: Expected type 'T' to be a valid and instantiated subtype of 'NativeType'. final int totalSize = count * sizeOf<T>();
^

FAILURE: Build failed with an exception.

  • Where:
    Script '/Users/nonnyzcsrt/FlutterSdk/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 991

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/Users/nonnyzcsrt/FlutterSdk/flutter/bin/flutter'' 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 23s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 24.7s Exception: Gradle task assembleDebug failed with exit code 1 Porntheps-MacBook-Pro-686:lib nonnyzcsrt$ flutter channel Flutter channels: master

  • dev beta stable

nonnyzcsrt avatar Mar 04 '21 10:03 nonnyzcsrt

I have the same problem

E:\SheepYang\Project\flutter-folio>flutter doctor -v
[√] Flutter (Channel stable, 2.0.1, on Microsoft Windows [Version 10.0.18363.1379], locale zh-CN)
    • Flutter version 2.0.1 at E:\SheepYang\Flutter\Sdk\flutter_stable
    • Framework revision c5a4b4029c (8 hours ago), 2021-03-04 09:47:48 -0800
    • Engine revision 40441def69
    • Dart version 2.12.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at E:\SheepYang\Android\Sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: E:\SheepYang\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.8.4)
    • Visual Studio at E:\SheepYang\Software\VisualStudio\2019\Community
    • Visual Studio Community 2019 version 16.8.30907.101
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 4.1.0)
    • Android Studio at E:\SheepYang\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
    • IntelliJ at E:\SheepYang\Software\IntelliJ IDEA 2020.3.1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

 [√] Connected device (3 available)
    • SKW A0 (mobile)   • 7692d5ee • android-arm64  • Android 10 (API 29)
    • Windows (desktop) • windows  • windows-x64    • Microsoft Windows [Version 10.0.18363.1379]
    • Chrome (web)      • chrome   • web-javascript • Google Chrome 89.0.4389.72

• No issues found!

SheepYang1993 avatar Mar 05 '21 01:03 SheepYang1993

I'm not really sure the error here, can you be more specific?

From what I gather: You are on MacOS, and can not build android?

esDotDev avatar Mar 12 '21 18:03 esDotDev