Build Error

Troubleshooting

I'm loving FF but these random Build Errors are REALLY frustrating. All I did was add a simple component (basically a simple list view title with a text field and button) to a page (the component is used on other pages with no issue) and BOOM build error.

I'm still on the Free versions, so I am not tinkering with any code. And looking at the error it seems something 'internal' to FF as there appears to be no reference to my page or component.

Here is the full error:

100 packages have newer versions incompatible with dependency constraints.

Try flutter pub outdated for more information.

Launching lib/main.dart on Web Server in debug mode...

Waiting for connection from debug service on Web Server...

/root/.pub-cache/hosted/pub.dev/app_links-3.4.1/lib/app_links.dart:11:38: Error: The method 'getInitialAppLink' isn't defined for the class 'AppLinksPlatform'.

- 'AppLinksPlatform' is from 'package:app_links_platform_interface/app_links_platform_interface.dart' ('/root/.pub-cache/hosted/pub.dev/app_links_platform_interface-1.2.0/lib/app_links_platform_interface.dart').

Try correcting the name to the name of an existing method, or defining a method named 'getInitialAppLink'.

return AppLinksPlatform.instance.getInitialAppLink();

^^^^^^^^^^^^^^^^^

/root/.pub-cache/hosted/pub.dev/app_links-3.4.1/lib/app_links.dart:16:38: Error: The method 'getInitialAppLinkString' isn't defined for the class 'AppLinksPlatform'.

- 'AppLinksPlatform' is from 'package:app_links_platform_interface/app_links_platform_interface.dart' ('/root/.pub-cache/hosted/pub.dev/app_links_platform_interface-1.2.0/lib/app_links_platform_interface.dart').

Try correcting the name to the name of an existing method, or defining a method named 'getInitialAppLinkString'.

return AppLinksPlatform.instance.getInitialAppLinkString();

^^^^^^^^^^^^^^^^^^^^^^^

/root/.pub-cache/hosted/pub.dev/app_links-3.4.1/lib/app_links.dart:21:38: Error: The method 'getLatestAppLink' isn't defined for the class 'AppLinksPlatform'.

- 'AppLinksPlatform' is from 'package:app_links_platform_interface/app_links_platform_interface.dart' ('/root/.pub-cache/hosted/pub.dev/app_links_platform_interface-1.2.0/lib/app_links_platform_interface.dart').

Try correcting the name to the name of an existing method, or defining a method named 'getLatestAppLink'.

return AppLinksPlatform.instance.getLatestAppLink();

^^^^^^^^^^^^^^^^

/root/.pub-cache/hosted/pub.dev/app_links-3.4.1/lib/app_links.dart:26:38: Error: The method 'getLatestAppLinkString' isn't defined for the class 'AppLinksPlatform'.

- 'AppLinksPlatform' is from 'package:app_links_platform_interface/app_links_platform_interface.dart' ('/root/.pub-cache/hosted/pub.dev/app_links_platform_interface-1.2.0/lib/app_links_platform_interface.dart').

Try correcting the name to the name of an existing method, or defining a method named 'getLatestAppLinkString'.

return AppLinksPlatform.instance.getLatestAppLinkString();

^^^^^^^^^^^^^^^^^^^^^^

/root/.pub-cache/hosted/pub.dev/app_links-3.4.1/lib/app_links.dart:41:38: Error: The getter 'allStringLinkStream' isn't defined for the class 'AppLinksPlatform'.

- 'AppLinksPlatform' is from 'package:app_links_platform_interface/app_links_platform_interface.dart' ('/root/.pub-cache/hosted/pub.dev/app_links_platform_interface-1.2.0/lib/app_links_platform_interface.dart').

Try correcting the name to the name of an existing getter, or defining a getter or field named 'allStringLinkStream'.

return AppLinksPlatform.instance.allStringLinkStream;

^^^^^^^^^^^^^^^^^^^

/root/.pub-cache/hosted/pub.dev/app_links-3.4.1/lib/app_links.dart:46:38: Error: The getter 'allUriLinkStream' isn't defined for the class 'AppLinksPlatform'.

- 'AppLinksPlatform' is from 'package:app_links_platform_interface/app_links_platform_interface.dart' ('/root/.pub-cache/hosted/pub.dev/app_links_platform_interface-1.2.0/lib/app_links_platform_interface.dart').

Try correcting the name to the name of an existing getter, or defining a getter or field named 'allUriLinkStream'.

return AppLinksPlatform.instance.allUriLinkStream;

^^^^^^^^^^^^^^^^

Waiting for connection from debug service on Web Server... 56.8s

Failed to compile application.

What have you tried so far?

I have removed the component from the page but it still errors on build. I'm not sure what more I can do.

Any thoughts/guidance/suggestions would be appreciated 🙏

Did you check FlutterFlow's Documentation for this topic?
Yes
1
2 replies