audio_waveforms icon indicating copy to clipboard operation
audio_waveforms copied to clipboard

Build problems make it unusable

Open GRawhideMart opened this issue 1 year ago • 2 comments
trafficstars

Describe the bug Introducing this library leads to build errors. See screenshot for further details.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'pubspec.yaml'
  2. Add audio_waveforms: ^1.0.5 to the dependencies
  3. Try to build for Android
  4. See error

Expected behavior It should build the Android application

Smartphone (please complete the following information):

  • Google Pixel 8
  • Android
  • Version 14

Screenshots image

GRawhideMart avatar May 07 '24 14:05 GRawhideMart

I don't see anything related audio waveform in the image you shared. Can you please share full exception?

Ujas-Majithiya avatar May 12 '24 08:05 Ujas-Majithiya

this happens for me as well. Just adding the dependency in pubspec.yaml (not adding any code related to audio_waveforms) leads to the build error. Apparently, this only happens with the latest version 1.0.5. With 1.0.4 the app builds just fine (although I haven't tested/added any audio_waveforms functionality just yet).

SamProell avatar Jun 25 '24 12:06 SamProell

Hello, If I try the 1.1.1 version, I'm getting the error when building either by downloading the zip code or by copy&pasting the Example code from https://pub.dev/packages/audio_waveforms/example in a new Flutter project

Execution failed for task ':flutter_plugin_android_lifecycle:compileDebugJavaWithJavac'.

Could not resolve all files for configuration ':flutter_plugin_android_lifecycle:androidJdkImage'. Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. > Execution failed for JdkImageTransform: C:\Users\agust\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar. ... This is my tech stack:

Android Studio Ladybug | 2024.2.1 Patch 2 Flutter (Channel stable, 3.24.4, on Microsoft Windows [Version 10.0.26100.2161], locale en-US) • Framework revision 603104015d (12 days ago), 2024-10-24 08:01:25 -0700 • Engine revision db49896cf2 • Dart version 3.5.4 • DevTools version 2.37.3 Windows Version (Installed version of Windows is version 10 or higher) Android toolchain - develop for Android devices (Android SDK version 35.0.0) • Platform android-35, build-tools 35.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11) • Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.2) • Windows 10 SDK version 10.0.22621.0

agustin-garcia avatar Nov 05 '24 14:11 agustin-garcia

Hi @agustin-garcia, @SamProell, and @GRawhideMart, We have tried all the ways to reproduce this issue, but we cannot reproduce them.

So, Please share your full error code or terminal output. Also, please share pubspec.yaml with other dependencies versions.

jay-simformsolutions avatar Dec 23 '24 10:12 jay-simformsolutions

i have moved on from that project a while ago and will not be able to reproduce the issue. I ended up not including waveform visualization at all.

SamProell avatar Dec 23 '24 10:12 SamProell

Same here. It's been a long time, so I just moved along with other options.

Cheers anyway for an awesome project!

Il giorno lun 23 dic 2024 alle ore 11:14 Samuel Pröll < @.***> ha scritto:

i have moved on from that project a while ago and will not be able to reproduce the issue. I ended up not including waveform visualization at all.

— Reply to this email directly, view it on GitHub https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues/296#issuecomment-2559366500, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO6LFEGEAXOIAF7RDYH7KD32G7PA3AVCNFSM6AAAAABHLELK2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJZGM3DMNJQGA . You are receiving this because you were mentioned.Message ID: @.***>

GRawhideMart avatar Dec 23 '24 10:12 GRawhideMart

Ok. So, I am closing this issue. Feel free to create a new issue or re-open this if you face it again.

jay-simformsolutions avatar Dec 23 '24 10:12 jay-simformsolutions