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

FAILURE: Build failed with an exception. #149

Open
SionFu opened this issue Mar 20, 2025 · 2 comments
Open

FAILURE: Build failed with an exception. #149

SionFu opened this issue Mar 20, 2025 · 2 comments

Comments

@SionFu
Copy link

SionFu commented Mar 20, 2025

OpenIM Server Version

3.8.3

Operating System and CPU Architecture

macOS (ARM)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

flutter build apk failed with an exception.
FAILURE: Build failed with an exception.

  • Where:
    Script '/Users/flutter/packages/flutter_tools/gradle/app_plugin_loader.gradle' line: 9

  • What went wrong:
    A problem occurred evaluating script.

You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is not possible anymore. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply

  • 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.

BUILD FAILED in 2s
Running Gradle task 'assembleRelease'... 3.2s
Gradle task assembleRelease failed with exit code 1

Screenshots Link

No response

@SionFu
Copy link
Author

SionFu commented Mar 20, 2025

[✓] Flutter (Channel stable, 3.24.5, on macOS 15.1 24B83 darwin-arm64 (Rosetta),
locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Android Studio (version 2024.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.1.3)
[✓] VS Code (version 1.98.1)
openjdk 17.0.14 2025-01-21
OpenJDK Runtime Environment Homebrew (build 17.0.14+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.14+0, mixed mode, sharing)

@std-s
Copy link
Member

std-s commented Mar 20, 2025

Try using a VPN. Also keep all logs private.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants