Android Studio Build Failure
Hey, I opened a topic 2 days ago but my problem is not solved yet and more problems are appearing on top of it
My problem: https://github.com/BasedHardware/omi/issues/2402#issuecomment-2899376460
After solving the Instabug_flutter problem, the following problem appears
Note: Recompile with -Xlint:deprecation for details. C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_background_service_android-6.2.4\android\src\main\java\id\flutter\flutter_background_service\BackgroundService.java:175: error: cannot find symbol symbol: method startForeground(BackgroundService,int,Notification,Integer) location: class ServiceCompat Note: Some input files use or override 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 ':flutter_background_service_android: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.
Please let's resolve the issue before locking :)
PS C:\Users\Admin\Desktop\07\app\android> flutter doctor -v [√] Flutter (Channel stable, 3.24.1, on Microsoft Windows [Version 10.0.19045.5854], locale tr-TR) • Flutter version 3.24.1 on channel stable at C:\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 5874a72aa4 (9 months ago), 2024-08-20 16:46:00 -0500 • Engine revision c9b9d5780d • Dart version 3.5.1 • DevTools version 2.37.2
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0) • Android SDK at C:\Users\Admin\AppData\Local\Android\sdk • Platform android-35, build-tools 35.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314) • All Android licenses accepted.
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.6) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community • Visual Studio Community 2022 version 17.8.34525.116 • Windows 10 SDK version 10.0.22621.0
[√] Android Studio (version 2024.1) • Android Studio at C:\Program Files\Android\Android Studio • 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 17.0.11+0--11852314)