juliansteenbakker / nordic_dfu

Execute a Device Firmware Update (DFU) on your nRF51 or nRF52 chip from Nordic Semiconductor. Fork from flutter_nordic_dfu.
MIT License
29 stars 31 forks source link

Error on build app #115

Closed andreamainella98 closed 1 year ago

andreamainella98 commented 1 year ago

Hello, when I try to run the production build, I get the following error:

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':nordic_dfu:compileReleaseJavaWithJavac'.
error: invalid source release: 17

The version of Flutter we are using is the following, using FVM:

[✓] Flutter (Channel stable, 3.0.5, on macOS 13.4.1 22F770820d darwin-arm, locale it-IT)

How can I resolve this issue? Because when I remove your plugin, it works correctly 😅

HowManyOliversAreThere commented 1 year ago

Encountered the same issue on Android when running 6.1.2 (latest), works fine on iOS.

Android known to be previously working on 6.0.1, reverting to this version was our solution - obviously not a very good one...

juliansteenbakker commented 1 year ago

Please use java 17 or higher for this project: https://stackoverflow.com/a/70215091/13031778