Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running ./gradlew build #1394

Open
bobyzzy opened this issue Jan 30, 2025 · 1 comment
Open

Error when running ./gradlew build #1394

bobyzzy opened this issue Jan 30, 2025 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@bobyzzy
Copy link

bobyzzy commented Jan 30, 2025

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 bobyzzy added the bug Something isn't working label Jan 30, 2025
@daohoangson
Copy link
Owner

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 daohoangson self-assigned this Jan 31, 2025
@daohoangson daohoangson added question Further information is requested and removed bug Something isn't working labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants