-
Notifications
You must be signed in to change notification settings - Fork 752
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
Screenshots
No response
Flutter Doctor Output
[✓] 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 resourcesAdditional Information
No response