aliyazdi75 / flutter_media_notification

Flutter Media Notification helps you to show your media notification and control streaming media beyond your flutter app. https://pub.dev/packages/flutter_media_notification
MIT License
32 stars 27 forks source link

Plugin fails to build everytime. Tried "flutter clean" and some other steps, but didn't help.(I've marked the log for same in bold, rest of the jettifier log is from another package which passes everytime) #12

Open gauravxdhingra opened 4 years ago

gauravxdhingra commented 4 years ago

Launching lib\main.dart on Redmi Note 7 Pro in debug mode... C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicHelper.java:8: error: cannot find symbol import android.support.v4.app.ActivityCompat; ^ symbol: class ActivityCompat location: package android.support.v4.app C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicHelper.java:9: error: package android.support.v4.content does not exist import android.support.v4.content.ContextCompat; ^ C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicHelper.java:10: error: package android.support.v7.app does not exist import android.support.v7.app.AppCompatActivity; ^ C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicHelper.java:15: error: cannot find symbol public static boolean hasExternalStorageAccess(AppCompatActivity activity) { ^ symbol: class AppCompatActivity location: class MusicHelper C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicHelper.java:16: error: cannot find symbol if(ContextCompat.checkSelfPermission(activity, Manifest.permission.READ_EXTERNAL_STORAGE) ^ symbol: variable ContextCompat location: class MusicHelper C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicHelper.java:19: error: cannot find symbol ActivityCompat.requestPermissions(activity, ^ symbol: variable ActivityCompat location: class MusicHelper Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicFinderPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicFinderPlugin.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 6 errors FAILURE: Build failed with an exception.

BUILD FAILED in 4s The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility. Building plugin flute_music_player... √ Built build\app\outputs\repo. Building plugin flutter_keyboard_visibility... √ Built build\app\outputs\repo. Building plugin flutter_media_notification... The plugin flutter_media_notification could not be built due to the issue above. Exited (sigterm)