thingsboard / flutter_thingsboard_app

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

Cannot build APK #33

Closed realbeeit closed 5 months ago

realbeeit commented 1 year ago

Hello everyone, I am new to Android Studio but I managed it to make app work in emulator. However, I am unable to make APK. I got this message:

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

BUILD FAILED in 1m 5s Running Gradle task 'assembleRelease'... 67,4s Gradle task assembleRelease failed with exit code 1 Process finished with exit code 1

AscenX commented 1 year ago

flutter build apk --no-tree-shake-icons

song-df commented 11 months ago

Always failure with Resolving dependencies... (1.9s) Because every version of flutter_localizations from sdk depends on intl 0.18.0 and thingsboard_app depends on intl ^0.17.0, flutter_localizations from sdk is forbidden. So, because thingsboard_app depends on flutter_localizations from sdk, version solving failed. What can I do?

ybeshkarov commented 5 months ago

Hi @song-df.

Just update to the latest table flutter version. It will help.