flutter_widget_from_html icon indicating copy to clipboard operation
flutter_widget_from_html copied to clipboard

Error when running ./gradlew build

Open bobyzzy opened this issue 11 months ago • 1 comments

Tesing environment

[✓] Flutter (Channel stable, 3.27.1, on macOS 15.1.1 24B91 darwin-arm64, locale ru-UZ) • Flutter version 3.27.1 on channel stable at /Users/bobur/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 17025dd882 (6 недель назад), 2024-12-17 03:23:09 +0900 • Engine revision cb4b5fff73 • Dart version 3.6.0 • DevTools version 2.40.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) • Android SDK at /Users/bobur/Library/Android/sdk • Platform android-35, build-tools 35.0.0 • Java binary at: /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/bin/java • Java version Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 16C5032a • CocoaPods version 1.15.2

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 21.0.4+-12422083-b607.1)

[✓] VS Code (version 1.96.4) • VS Code at /Users/bobur/Desktop/Visual Studio Code.app/Contents • Flutter extension version 3.102.0

[✓] Connected device (4 available) • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 15 (API 35) (emulator) • macOS (desktop) • macos • darwin-arm64 • macOS 15.1.1 24B91 darwin-arm64 • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.1.1 24B91 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 132.0.6834.111 ! Error: Browsing on the local area network for iPhone bobyzzy. 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) ! Error: Browsing on the local area network for iPhone bobyzzy. 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 • All expected network resources are available.

• No issues found!


Gradle 8.3

Build time: 2023-08-17 07:06:47 UTC Revision: 8afbf24b469158b714b36e84c6f4d4976c86fcd5

Kotlin: 1.9.0 Groovy: 3.0.17 Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023 JVM: 17.0.12 (Oracle Corporation 17.0.12+8-LTS-286) OS: Mac OS X 15.1.1 aarch64

Expected results

Expected success result of running script ./gradlew build

Actual results

Task :just_audio:lintDebug FAILED Lint found 97 errors, 3 warnings. First failure:

/Users/bobur/.pub-cache/hosted/pub.dev/just_audio-0.9.43/android/src/main/java/com/ryanheise/just_audio/AudioPlayer.java:826: Error: Call requires API level 19 (current min is 16): android.media.audiofx.LoudnessEnhancer#setTargetGain [NewApi] ((LoudnessEnhancer)audioEffectsMap.get("AndroidLoudnessEnhancer")).setTargetGain(targetGainMillibels);

bobyzzy avatar Jan 30 '25 18:01 bobyzzy

Do you have AUDIO tags in your HTML? If you don't, consider using flutter_widget_from_html_core package to avoid building just_audio unnecessary.

daohoangson avatar Jan 31 '25 14:01 daohoangson