Skip to content

[network_info_plus] Build Failed on 1.1.0 or later version #549

@kyle-seongwoo-jun

Description

@kyle-seongwoo-jun

Steps to Reproduce

  1. (before 1.1.0 is released) Use the 1.0.2 or older version.
  2. network_info_plus_platform_interface will be restored with 1.0.1 version.
  3. (after 1.1.0 is released) Update version to 1.1.0 or later version.
  4. network_info_plus_platform_interface should be 1.1.0, but it's still 1.0.1 version, so it always fails to build.

Logs

iOS build

    ../../.pub-cache/hosted/pub.dartlang.org/network_info_plus-2.0.2/lib/network_info_plus.dart:81:22: Error: The method 'getWifiIPv6' isn't defined for the class 'NetworkInfoPlatform'.
     - 'NetworkInfoPlatform' is from 'package:network_info_plus_platform_interface/network_info_plus_platform_interface.dart' ('../../.pub-cache/hosted/pub.dartlang.org/network_info_plus_platform_interface-1.0.1/lib/network_info_plus_platform_interface.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'getWifiIPv6'.
        return _platform.getWifiIPv6();
                         ^^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dartlang.org/network_info_plus-2.0.2/lib/network_info_plus.dart:86:22: Error: The method 'getWifiSubmask' isn't defined for the class 'NetworkInfoPlatform'.
     - 'NetworkInfoPlatform' is from 'package:network_info_plus_platform_interface/network_info_plus_platform_interface.dart' ('../../.pub-cache/hosted/pub.dartlang.org/network_info_plus_platform_interface-1.0.1/lib/network_info_plus_platform_interface.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'getWifiSubmask'.
        return _platform.getWifiSubmask();
                         ^^^^^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dartlang.org/network_info_plus-2.0.2/lib/network_info_plus.dart:91:22: Error: The method 'getWifiGatewayIP' isn't defined for the class 'NetworkInfoPlatform'.
     - 'NetworkInfoPlatform' is from 'package:network_info_plus_platform_interface/network_info_plus_platform_interface.dart' ('../../.pub-cache/hosted/pub.dartlang.org/network_info_plus_platform_interface-1.0.1/lib/network_info_plus_platform_interface.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'getWifiGatewayIP'.
        return _platform.getWifiGatewayIP();
                         ^^^^^^^^^^^^^^^^
    ../../.pub-cache/hosted/pub.dartlang.org/network_info_plus-2.0.2/lib/network_info_plus.dart:96:22: Error: The method 'getWifiBroadcast' isn't defined for the class 'NetworkInfoPlatform'.
     - 'NetworkInfoPlatform' is from 'package:network_info_plus_platform_interface/network_info_plus_platform_interface.dart' ('../../.pub-cache/hosted/pub.dartlang.org/network_info_plus_platform_interface-1.0.1/lib/network_info_plus_platform_interface.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'getWifiBroadcast'.
        return _platform.getWifiBroadcast();
                         ^^^^^^^^^^^^^^^^
    Failed to package /Users/kyle/Projects/xxx.
    Command PhaseScriptExecution failed with a nonzero exit code

Android Build

../../.pub-cache/hosted/pub.dartlang.org/network_info_plus-1.1.0/lib/network_info_plus.dart:81:22: Error: The method 'getWifiIPv6' isn't defined for the class 'NetworkInfoPlatform'.
 - 'NetworkInfoPlatform' is from 'package:network_info_plus_platform_interface/network_info_plus_platform_interface.dart' ('../../.pub-cache/hosted/pub.dartlang.org/network_info_plus_platform_interface-1.0.1/lib/network_info_plus_platform_interface.dart').
Try correcting the name to the name of an existing method, or defining a method named 'getWifiIPv6'.
    return _platform.getWifiIPv6();
                     ^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/network_info_plus-1.1.0/lib/network_info_plus.dart:86:22: Error: The method 'getWifiSubmask' isn't defined for the class 'NetworkInfoPlatform'.
 - 'NetworkInfoPlatform' is from 'package:network_info_plus_platform_interface/network_info_plus_platform_interface.dart' ('../../.pub-cache/hosted/pub.dartlang.org/network_info_plus_platform_interface-1.0.1/lib/network_info_plus_platform_interface.dart').
Try correcting the name to the name of an existing method, or defining a method named 'getWifiSubmask'.
    return _platform.getWifiSubmask();
                     ^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/network_info_plus-1.1.0/lib/network_info_plus.dart:91:22: Error: The method 'getWifiGatewayIP' isn't defined for the class 'NetworkInfoPlatform'.
 - 'NetworkInfoPlatform' is from 'package:network_info_plus_platform_interface/network_info_plus_platform_interface.dart' ('../../.pub-cache/hosted/pub.dartlang.org/network_info_plus_platform_interface-1.0.1/lib/network_info_plus_platform_interface.dart').
Try correcting the name to the name of an existing method, or defining a method named 'getWifiGatewayIP'.
    return _platform.getWifiGatewayIP();
                     ^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/network_info_plus-1.1.0/lib/network_info_plus.dart:96:22: Error: The method 'getWifiBroadcast' isn't defined for the class 'NetworkInfoPlatform'.
 - 'NetworkInfoPlatform' is from 'package:network_info_plus_platform_interface/network_info_plus_platform_interface.dart' ('../../.pub-cache/hosted/pub.dartlang.org/network_info_plus_platform_interface-1.0.1/lib/network_info_plus_platform_interface.dart').
Try correcting the name to the name of an existing method, or defining a method named 'getWifiBroadcast'.
    return _platform.getWifiBroadcast();
                     ^^^^^^^^^^^^^^^^


FAILURE: Build failed with an exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions