You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: tmpdescription: "A new Flutter project."publish_to: 'none'# Remove this line if you wish to publish to pub.devversion: 1.0.0+1environment:
sdk: ^3.7.0dependencies:
flutter:
sdk: fluttercupertino_icons: ^1.0.8android_alarm_manager_plus: ^4.0.6dev_dependencies:
flutter_test:
sdk: flutterflutter_lints: ^5.0.0flutter:
uses-material-design: true
Native dependencies
plugins {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}
android {
namespace = "com.example.tmp"
compileSdk = flutter.compileSdkVersion
ndkVersion = "27.0.12077973"
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.tmp"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
buildTypes {
release {
signingConfig = signingConfigs.getByName("debug")
}
}
}
flutter {
source = "../.."
}
Compilation Error
❯ flutter build apk
/Users/matthiasschicker/.pub-cache/hosted/pub.dev/android_alarm_manager_plus-4.0.6/android/src/main/java/dev/fluttercommunity/plus/androidalarmmanager/AndroidAlarmManagerPlugin.java:16: error: cannot find symbol
import io.flutter.view.FlutterNativeView;
^
symbol: class FlutterNativeView
location: package io.flutter.view
Note: /Users/matthiasschicker/.pub-cache/hosted/pub.dev/android_alarm_manager_plus-4.0.6/android/src/main/java/dev/fluttercommunity/plus/androidalarmmanager/AlarmService.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':android_alarm_manager_plus:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.
BUILD FAILED in 1s
Running Gradle task 'assembleRelease'... 1,806ms
Gradle task assembleRelease failed with exit code 1
Flutter Doctor
❯ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.29.0, on macOS 15.3.1 24D70 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.97.0)
[✓] Connected device (5 available)
[✓] Network resources
• No issues found!
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
The text was updated successfully, but these errors were encountered:
Please note that while I found the issue with my main project, I could reproduce it with a minimal project as well:
I just created a new Flutter project and added the dependency to android_alarm_manager_plus: ^4.0.6, no code changes.
The compilation error only happens with Flutter 3.29.0 (the current stable version) and later (e.g., master channel version 3.30.0-1.0.pre.150). When I downgrade Flutter to 3.27.4 via git checkout 3.27.4, I do not see build issues.
Operating System
macOS 15.3.1
Plugin
alarm_manager_plus
Version
4.0.6
Flutter SDK
3.29.0
Compilation command
flutter run
/flutter build apk
Dart Dependencies
Native dependencies
Compilation Error
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: