-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
Operating System
Hyperland OS
Plugin
share_plus
Version
9.1.0
Flutter SDK
3.38.7
Compilation command
flutter run --flavor dev --target lib/main_dev.dart
Dart Dependencies
Native dependencies
Compilation Error
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file '/home/dgti/.puro/shared/pub_cache/hosted/pub.dev/share_plus-12.0.1/android/build.gradle' line: 25
* What went wrong:
A problem occurred evaluating project ':share_plus'.
> Failed to apply plugin 'kotlin-android'.
> ⛔ Failed to apply plugin 'org.jetbrains.kotlin.android'
The 'org.jetbrains.kotlin.android' plugin is no longer required for Kotlin support since AGP 9.0.
Solution: Remove the 'org.jetbrains.kotlin.android' plugin from this project's build file: ../../../../../home/dgti/.puro/shared/pub_cache/hosted/pub.dev/share_plus-12.0.1/android/build.gradle.
See https://kotl.in/gradle/agp-built-in-kotlin for more details.
> java.lang.Throwable (no error message)
* 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 generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':share_plus'.
> Failed to notify project evaluation listener.
2
> java.lang.NullPointerException (no error message)
> Android Gradle Plugin: project ':share_plus' does not specify `compileSdk` in build.gradle (/home/dgti/.puro/shared/pub_cache/hosted/pub.dev/share_plus-12.0.1/android/build.gradle).
* 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 generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.
==============================================================================
BUILD FAILED in 13s
┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────┐
│ [!] Starting AGP 9+, the default has become built-in Kotlin. This results in a build failure │
│ when applying the kotlin-android plugin at │
│ /mnt/961E6ADA1E6AB2C3/dayaguna/new_hrm/android/app/build.gradle.kts. │
│ │
│ To resolve this, migrate to built-in Kotlin. For instructions on how to migrate, see: │
│ https://docs.flutter.dev/release/breaking-changes/migrate-to-agp-9 │
└──────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDevDebug failed with exit code 1
Exited (1).Flutter Doctor
[✓] Flutter (Channel stable, 3.38.7, on CachyOS 6.18.6-2-cachyos, locale en_US.UTF-8) [60ms]
• Flutter version 3.38.7 on channel stable at /home/dgti/.puro/envs/stable/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 3b62efc2a3 (8 days ago), 2026-01-13 13:47:42 -0800
• Engine revision 78fc3012e4
• Dart version 3.10.7
• DevTools version 2.51.1
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios,
cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [1,890ms]
• Android SDK at /home/dgti/Android/Sdk
• Emulator version unknown
• Platform android-36, build-tools 36.0.0
• ANDROID_HOME = /home/dgti/Android/Sdk
• ANDROID_SDK_ROOT = /opt/android-sdk
• Java binary at: /usr/bin/java
This JDK was found in the system PATH.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 17.0.17+10)
• All Android licenses accepted.
[✓] Chrome - develop for the web [56ms]
• CHROME_EXECUTABLE = /usr/bin/firefox
[✗] Linux toolchain - develop for Linux desktop [552ms]
• clang version 21.1.6
✗ CMake is required for Linux development.
It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded from https://cmake.org/download/
✗ ninja is required for Linux development.
It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from
https://github.com/ninja-build/ninja/releases
• pkg-config version 2.5.1
• OpenGL core renderer: Mesa Intel(R) Iris(R) Xe Graphics (TGL GT2)
• OpenGL core version: 4.6 (Core Profile) Mesa 25.3.3-arch1.6
• OpenGL core shading language version: 4.60
• OpenGL ES renderer: Mesa Intel(R) Iris(R) Xe Graphics (TGL GT2)
• OpenGL ES version: OpenGL ES 3.2 Mesa 25.3.3-arch1.6
• OpenGL ES shading language version: OpenGL ES GLSL ES 3.20
• GL_EXT_framebuffer_blit: yes
• GL_EXT_texture_format_BGRA8888: yes
[✓] Connected device (3 available) [367ms]
• SM A035F (mobile) • R9RT604YL5R • android-arm64 • Android 13 (API 33)
• Linux (desktop) • linux • linux-x64 • CachyOS 6.18.6-2-cachyos
• Chrome (web) • chrome • web-javascript • Mozilla Firefox 147.0.1
[✓] Network resources [477ms]
• All expected network resources are available.Checklist before submitting a bug
- I searched issues in this repository and couldn't find such bug/problem
- I Google'd a solution and I couldn't find it
- I searched on StackOverflow for a solution and I couldn't find it
- I read the README.md file of the plugin
- I'm using the latest version of the plugin
- All dependencies are up to date with
flutter pub upgrade - I did a
flutter clean - I tried running the example project