thingsboard / flutter_thingsboard_pe_app

ThingsBoard PE Mobile Application
https://thingsboard.io/products/mobile-pe/
BSD 3-Clause "New" or "Revised" License
87 stars 69 forks source link

Cannot compile app with flutter #95

Closed gcorthey closed 3 months ago

gcorthey commented 3 months ago

I get the following error when running

$ flutter run
Resolving dependencies... (1.2s)
Note: intl is pinned to version 0.19.0 by flutter_localizations from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.

Because every version of flutter_localizations from sdk depends on intl 0.19.0 and thingsboard_app depends on intl ^0.18.1, flutter_localizations from sdk is
  forbidden.
So, because thingsboard_app depends on flutter_localizations from sdk, version solving failed.
maostar1010 commented 3 months ago

I resolved this issue by adding the following piece of code to pubspec.yaml:

dependency_overrides:
  intl: any

then run flutter pub upgrade