carp-dk / carp-dk/flutter-plugins
[noise_meter 5.0.2] Not building on latest Gradle version
- Dominant language
- Dart
- Stars
- 608
- Forks
- 735
- Avg merge
- 1m
- Merged PRs (30d)
- 3
Description
### Plugin Name
noise_meter
### Plugin Version
5.0.2
### Device
Redmi 12
### Operating System
Android 14
### Describe the bug
The application isn't building when
`distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip`
is set. The error
```
Execution failed for task ':audio_streamer:compileDebugKotlin'.
> 'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain
```
comes up, and is not fixable from inside our app code. The newest version of audio_streamer seems to be updated recently for the latest Gradle version and as such should work.
### Steps to Reproduce
Create an app that uses Gradle 8.7 and includes the latest noise_meter (5.0.2), it will not build with above error.
### Expected Behavior
It builds.
### Actual Behavior
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':audio_streamer:compileDebugKotlin'.
> 'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 5m 17s
Running Gradle task 'assembleDebug'... 318.6s
Error: Gradle task assembleDebug failed with exit code 1
### Flutter Logs
```shell
```
### Screenshots
_No response_
### Flutter Doctor Output
```shell
[✓] Flutter (Channel stable, 3.29.2, on macOS 14.6.1 23G93 darwin-arm64, locale en-BE)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.97.0)
[✓] Connected device (3 available)
! Device emulator-5562 is offline.
! Error: Browsing on the local area network for Ghijs’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the
same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
```
### Additional Information
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.