Flute Music Player - First Open Source Flutter based material design music player with audio plugin to play local music files.

Overview

Flute Music Player Plugin Only

Updated to androidx First Open Source Flutter based material design music player with audio plugin to play local music files.(Online Radio will be added soon.)

Features

  • Android (iOS Coming Soon)

    • Fetch local songs (Inbuilt Permission)
    • Beautiful UI with multiple themes(Coming Soon)
    • Animation
    • Full Fledged Example
    • play (local files)
    • stop
    • pause
    • seek
    • shuffle
    • Album Art
    • onComplete
    • onDuration / onCurrentPosition
  • Supported formats

Show some ❤️ and star the repo to support the project

  • Please note this is a plugin only. Actual project's link is below

Music Player Development Project

Flutter Beautiful Music Player

Screenshots

Usage

Example

To use this plugin :

  dependencies:
    flutter:
      sdk: flutter
    flute_music_player:
  • instantiate an Music Finder instance
//...
MusicFinder audioPlayer = new MusicFinder();
//...

Fetch Songs

//...
var songs = MusicFinder.allSongs();
//...

play, pause , stop, seek

play() async {
  final result = await audioPlayer.play(kUrl);
  if (result == 1) setState(() => playerState = PlayerState.playing);
}

// add a isLocal parameter to play a local file
playLocal() async {
  final result = await audioPlayer.play(kUrl);
  if (result == 1) setState(() => playerState = PlayerState.playing);
}


pause() async {
  final result = await audioPlayer.pause();
  if (result == 1) setState(() => playerState = PlayerState.paused);
}

stop() async {
  final result = await audioPlayer.stop();
  if (result == 1) setState(() => playerState = PlayerState.stopped);
}

// seek 5 seconds from the beginning
audioPlayer.seek(5.0);

duration, position, complete, error (temporary api)

The Dart part of the plugin listen for platform calls :

//...
audioPlayer.setDurationHandler((Duration d) => setState(() {
  duration = d;
}));

audioPlayer.setPositionHandler((Duration  p) => setState(() {
  position = p;
}));

audioPlayer.setCompletionHandler(() {
  onComplete();
  setState(() {
    position = duration;
  });
});

audioPlayer.setErrorHandler((msg) {
  print('audioPlayer error : $msg');
  setState(() {
    playerState = PlayerState.stopped;
    duration = new Duration(seconds: 0);
    position = new Duration(seconds: 0);
  });
});

##Credit for audioplayer plugin Erick Ghaumez Detailed Example for AudioPlayer

iOS

Alert: iOS implementation

This project is not implemented for ios yet.So wait for it or if you can contribute then please do help.

Pull Requests

I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:

  1. Match coding style (braces, spacing, etc.) This is best achieved using Reformat Code feature of Android Studio CMD+Option+L on Mac and CTRL + ALT + L on Linux + Windows .
  2. If its a feature, bugfix, or anything please only change code to what you specify.
  3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
  4. Pull requests must be made against develop branch. Any other branch (unless specified by the maintainers) will get rejected.
  5. Check for existing issues first, before filing an issue.
  6. Make sure you follow the set standard as all other projects in this repo do
  7. Have fun!

Created & Maintained By

Pawan Kumar (@imthepk) (Youtube) (Insta)

If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of

License

Copyright 2018 Pawan Kumar

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

Comments
  • Build problems with MusicHelper.java and AndroidX

    Build problems with MusicHelper.java and AndroidX

    Hi everyone,

    If like me you see this error appearing in your debug console :

    
    D:\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
    D:\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;
                                     ^
    D:\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;
                                 ^
    D:\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
    D:\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
    D:\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: D:\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: D:\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.
    
    * What went wrong:
    Execution failed for task ':flute_music_player:compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler error output for details.
    
    * 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.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 2s
    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...
    
    FAILURE: Build failed with an exception.
    
    

    That means your version of MusicHelper.java is not including AndroidX libraries.

    To fix this error, open the MusicHelper.java file (mine was located at "D:\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicFinderPlugin.java" ). At lines, 8 9 and 10 you should see this :

    import android.support.v4.app.ActivityCompat;
    import android.support.v4.content.ContextCompat;
    import android.support.v7.app.AppCompatActivity;
    

    Delete these three lines and replace it with these ones :

    import androidx.core.app.ActivityCompat;
    import androidx.core.content.ContextCompat;
    import androidx.appcompat.app.AppCompatActivity;
    

    And this should resolve the compatibility problem.

    EDIT : After posting this issue I checked the file in question inside the repository itself, because this error was too evident to never be noticed by the developer himself. And I saw the file was indeed modified. What happened to me is the plugin wasn't upgraded with my "flutter pub get" because the version (0.0.6) is still the same even after the AndroidX update. I downloaded the plugin last year, and my command didn't detected the change because of that.

    opened by Yowims 2
  • Impossible to run app since 0.0.4 version

    Impossible to run app since 0.0.4 version

    Hello,

    I have installed the version 0.0.3 of this plugin and it work fine. But since the release of 0.0.4 version, the 0.0.3 version is unavailable and the 0.0.4 don't work. When I try to run the app I get this error :

    Execution failed for task ':flute_music_player:compileDebugJavaWithJavac'

    It's now impossible to launch the app.

    You can see it on this screenshot.

    capture d ecran 2018-04-02 a 00 29 02

    thanks a lot.

    bug 
    opened by matichouraider 2
  • Plays same song

    Plays same song

    When I put different URLs as a parameter of the play function of the plugin, it plays the same song. So even I tap different songs, my app plays the same song.

    opened by Fireworks1205 1
  • Could not determine the dependencies of task ':flute_music_player:compileDebugAidl'

    Could not determine the dependencies of task ':flute_music_player:compileDebugAidl'

    I'm using compileSdkVersion 29 and this is the error:

    * What went wrong:
    Could not determine the dependencies of task ':flute_music_player:compileDebugAidl'.
    > Failed to find Platform SDK with path: platforms;android-27
    
    

    I need to keep using version 29, can anything be done about this?

    opened by fhasheminasab 0
  • App crashing while hot reloading in debugging

    App crashing while hot reloading in debugging

    F/libc (21153): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 21173 (Thread-3), pid 21153 (le.music_player)


    Build fingerprint: 'xiaomi/violet/violet:9/PKQ1.181203.001/V11.0.8.0.PFHINXM:user/release-keys' Revision: '0' ABI: 'arm64' pid: 21153, tid: 21173, name: Thread-3 >>> com.example.music_player <<< signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- x0 0000000000000000 x1 00000000000052b5 x2 0000000000000006 x3 0000000000000008 x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 0080000000000080 x8 0000000000000083 x9 d9a5fe76886567eb x10 0000000000000000 x11 fffffffc7ffffbdf x12 0000000000000001 x13 0000000000000008 x14 ffffffffffffffff x15 0000cf37e4695729 x16 0000007387d642b8 x17 0000007387c83c50 x18 0000000000000010 x19 00000000000052a1 x20 00000000000052b5 x21 00000072da733720 x22 00000072da72a840 x23 0000007301e8ae58 x24 00000072d73cfc00 x25 0000000000000011 x26 0000000000000000 x27 00000072ebed0bd8 x28 00000072ebf7a000 x29 00000072ea530f60 sp 00000072ea530f20 lr 0000007387c770c4 pc 0000007387c770ec backtrace: #00 pc 00000000000220ec /system/lib64/libc.so (abort+116) #01 pc 0000000001580138 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #02 pc 0000000001631458 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #03 pc 00000000015ac880 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #04 pc 00000000015abfe4 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #05 pc 00000000015addf4 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #06 pc 00000000015ae330 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #07 pc 00000000015aef00 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #08 pc 000000000162a448 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #09 pc 0000000001675e70 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #10 pc 00000000015f9d20 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #11 pc 00000000015f1cc8 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #12 pc 00000000015f7204 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #13 pc 00000000015f1a7c /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #14 pc 00000000016d01c8 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #15 pc 00000000016c9318 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #16 pc 00000000016c9848 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #17 pc 00000000015ef448 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #18 pc 0000000001611d84 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #19 pc 0000000001612010 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #20 pc 00000000018a2c78 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #21 pc 00000000014efb50 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #22 pc 00000000014efd08 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #23 pc 0000000001225b5c /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #24 pc 000000000122aa40 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #25 pc 0000000000014ff8 /system/lib64/libutils.so (android::Looper::pollInner(int)+836) #26 pc 0000000000014c18 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+60) #27 pc 00000000000122a4 /system/lib64/libandroid.so (ALooper_pollOnce+96) #28 pc 000000000122a9c4 /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #29 pc 0000000001225abc /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #30 pc 00000000012288fc /data/app/com.example.music_player-VC4qnISHkU-l-qtmz9Zs1A==/lib/arm64/libflutter.so (offset 0x1210000) #31 pc 0000000000090114 /system/lib64/libc.so (__pthread_start(void*)+36) #32 pc 00000000000239a8 /system/lib64/libc.so (__start_thread+68) Lost connection to device. Exited (sigterm)

    opened by gauravxdhingra 0
  • build.gradel error

    build.gradel error

    • What went wrong: A problem occurred evaluating root project 'android'.

    A problem occurred configuring project ':app'. No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

    opened by SaulSandovalM 0
  • scan files at begining of `getData()`

    scan files at begining of `getData()`

    At very first of getData(), we should send boardcast to load music metadata into content provider's database. This is useful for the music that is just uploaded to device.

    (PS: the reason we don't send ACTION_MEDIA_MOUNTED is explained here)

    opened by magodo 0
  • androidx problems

    androidx problems

    If flute_music_player library is compiled with other androidx updated libraries (most of the official libraries are updated), it causes compilation errors. So, flute_music_player library has to be updated to androidx to not cause any problems with conflicting libraries.

    opened by selvasoft 0
  • Error While running app when flute_music_player package imported

    Error While running app when flute_music_player package imported

    I am getting this error when I import flute_music_player in my project help me how can I fix this error...

    ``Launching lib/main.dart on POCO M2 Pro in debug mode... /home/lalit/Documents/Development/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
    /home/lalit/Documents/Development/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;
    ^
    /home/lalit/Documents/Development/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;
    ^
    /home/lalit/Documents/Development/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
    /home/lalit/Documents/Development/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
    /home/lalit/Documents/Development/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: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: /home/lalit/Documents/Development/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.

    • What went wrong:
      Execution failed for task ':flute_music_player:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

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

    • Get more help at https://help.gradle.org

    BUILD FAILED in 1m 25s
    Running Gradle task 'assembleDebug'...
    Running Gradle task 'assembleDebug'... Done 87.9s The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility. Building plugin flute_music_player... Running Gradle task 'assembleAarRelease'...
    Running Gradle task 'assembleAarRelease'... Done 20.4s ✓ Built build/app/outputs/repo. /home/lalit/AndroidStudioProjects/git_music_player/android/app/src/main/java/com/lncodes/git_music_player/MainActivity.java:3: error: package io.flutter.embedding.android does not exist import io.flutter.embedding.android.FlutterActivity;
    ^
    /home/lalit/AndroidStudioProjects/git_music_player/android/app/src/main/java/com/lncodes/git_music_player/MainActivity.java:5: error: cannot find symbol public class MainActivity extends FlutterActivity {
    ^
    symbol: class FlutterActivity
    /home/lalit/AndroidStudioProjects/git_music_player/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:6: error: package io.flutter.embedding.engine does not exist import io.flutter.embedding.engine.FlutterEngine;
    ^
    /home/lalit/AndroidStudioProjects/git_music_player/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:7: error: package io.flutter.embedding.engine.plugins.shim does not exist
    import io.flutter.embedding.engine.plugins.shim.ShimPluginRegistry;
    ^
    /home/lalit/AndroidStudioProjects/git_music_player/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:16: error: cannot find symbol public static void registerWith(@NonNull FlutterEngine flutterEngine) { ^
    symbol: class FlutterEngine
    location: class GeneratedPluginRegistrant
    /home/lalit/AndroidStudioProjects/git_music_player/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:17: error: cannot find symbol ShimPluginRegistry shimPluginRegistry = new ShimPluginRegistry(flutterEngine); ^
    symbol: class ShimPluginRegistry
    location: class GeneratedPluginRegistrant
    /home/lalit/AndroidStudioProjects/git_music_player/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:17: error: cannot find symbol ShimPluginRegistry shimPluginRegistry = new ShimPluginRegistry(flutterEngine); ^
    symbol: class ShimPluginRegistry
    location: class GeneratedPluginRegistrant
    /home/lalit/AndroidStudioProjects/git_music_player/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:18: error: cannot access MethodChannel com.mtechviral.musicfinder.MusicFinderPlugin.registerWith(shimPluginRegistry.registrarFor("com.mtechviral.musicfinder.MusicFinderPlugin")); ^
    class file for io.flutter.plugin.common.MethodChannel not found
    8 errors

    FAILURE: Build failed with an exception.

    • What went wrong:
      Execution failed for task ':app:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

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

    • Get more help at https://help.gradle.org

    BUILD FAILED in 38s
    Running Gradle task 'assembleDebug'...
    Running Gradle task 'assembleDebug'... Done 39.5s Exception: Gradle task assembleDebug failed with exit code 1

    opened by godstark82 0
  • cannot find symbol import android.support.v4.app.ActivityCompat;

    cannot find symbol import android.support.v4.app.ActivityCompat;

    Launching lib/main.dart on sdk gphone x86 arm in debug mode... Running Gradle task 'assembleDebug'... Note: /Users/user/Library/Android/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.18.4+1/android/src/main/java/io/flutter/plugins/firebase/auth/FlutterFirebaseAuthPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. /Users/user/Library/Android/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 /Users/user/Library/Android/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; ^ /Users/user/Library/Android/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; ^ /Users/user/Library/Android/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 /Users/user/Library/Android/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 /Users/user/Library/Android/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: /Users/user/Library/Android/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: /Users/user/Library/Android/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.

    • What went wrong: Execution failed for task ':flute_music_player:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

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

    • Get more help at https://help.gradle.org

    BUILD FAILED in 52s The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility. Building plugin cloud_firestore... Running Gradle task 'assembleAarRelease'... Exception: The plugin cloud_firestore could not be built due to the issue above.

    opened by Rioland 0
  • Could not determine the dependencies of task ':flute_music_player:compileDebugAidl'

    Could not determine the dependencies of task ':flute_music_player:compileDebugAidl'

    I'm using compileSdkVersion 29 and this is the error:

    * What went wrong:
    Could not determine the dependencies of task ':flute_music_player:compileDebugAidl'.
    > Failed to find Platform SDK with path: platforms;android-27
    
    

    I need to keep using version 29, can anything be done about this?

    opened by fhasheminasab 0
  • Build failed due to version difference

    Build failed due to version difference

    I am getting this error when i try to run the music player app. What can be a potential solution for this? Execution failed for task ':flute_music_player:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

    opened by harshkumarkhatri 1
Owner
Pawan Kumar
GoogleDevExpert for Flutter, Firebase, Dart & Web Tech. Public Speaker, Blogger, Entrepreneur & YouTuber. Founder of MTechViral & Let's Flutter with Dart.
Pawan Kumar
Google UI is an open-source UI library for developing cross-platform apps using Flutter with Material Design 2.0

Google UI Google UI is an open-source UI library for developing cross-platform apps using Flutter with "Material Design 2.0" Table of contents Install

Ed Sulaiman 25 Dec 24, 2022
Fingerprint Local Auth App Flutter Advanced Face ID & Touch ID/Fingerprint Local Auth App

flutterlocalauth A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Pawan Kumar 71 Dec 17, 2022
Flutter based Open Source Hentai Viewer App

Flutter based Open Source Hentai Viewer App

Project Violet 283 Jan 2, 2023
(Complete flutter application) Exam and training app as social media, prepared with Firebase backend services, Bloc State management, Singleton design pattern, Unit and widget tests, firebase mocking, Custom local libraries, etc.

(Complete flutter application) Exam and training app as social media, prepared with Firebase backend services, Bloc State management, Singleton design pattern, Unit and widget tests, firebase mocking, Custom local libraries, etc.

Ismael Shakverdiev 45 Jul 14, 2022
A demonstration of a Flutter appbar and material design icons with Hydro-SDK

A demonstration of a Flutter appbar and material design icons with Hydro-SDK

Hydro-SDK 0 Jan 20, 2022
Flutter project integrated with Supabase, the Firebase open source alternative

This is a Flutter project integrated with Supabase, the Firebase open source alternative. This project is a sandbox for playground for Flutter & Supabase integration.

anegrete 13 Oct 18, 2022
An open source Github client App developed by Flutter

English Readme 一款跨平台的开源Github客户端App,提供更丰富的功能,更好体验,旨在更好的日常管理和维护个人Github,

Shuyu Guo 13.7k Dec 31, 2022
Open source code for Bonfire flutter app

Open source code for Bonfire flutter app

SSebigo 12 Nov 15, 2022
My app - Developed for the first assignment of Max udemy course on flutter and dart

My app - Developed for the first assignment of Max udemy course on flutter and dart

Matheus dos Santos Lima 0 Jan 15, 2022
Tried my hands first time on Machine Learning 🤖. It's an Face Detection app 😀which higlights the face of a person from image 🖼️.

Flutter Face Detector ML This is the source code for Flutter Face Detector ML. App Features Select Images From Gallery. Detecting All Faces In Image A

Nikhil Pawar 5 Apr 20, 2021
Tahseen Quraishi 20 Dec 3, 2022
Flutter Music Player - CD Animation Challenge

Flutter Audio Player A new Flutter project. Here you will learn how to implement a music player into your flutter app. Features (Android & iOS) Fetch

Boffin Coders - App Development Company | Mobile App Development | Web App Development 19 Dec 15, 2022
Flutter shopping app with Getx for State management, Dio for APIs and Hive for the local database.

Created By Sajjad Javadi Email: [email protected] Show some ❤️ and star the repo to support the project Flutter Shopping app example In this pr

null 17 Nov 23, 2022
A Flutter increment value project with smart contract on Astar local

dapp_astar_evm_example A Flutter increment value project with smart contract on Astar local.

Polonity 4 Oct 26, 2022
Create & Play Quiz with Makemyquiz.web.app made with Flutter

Makemyquiz.web.app Create quiz, play them see detailed results and much more try now visit https://makemyquiz.web.app Features Included ✅ Google Sign

Sanskar Tiwari 45 Oct 27, 2022
Simple application for tracking weight. See Google Play for more details about this app!

WeightTracker Simple application for tracking weight. See Google Play for more details about this app! Getting started To build the app you need to cr

MSzalek mobile apps 344 Dec 14, 2022
Play Tic-Tac-Toe by clicking on the screen to fill the white spaces

tic_tac_toe Tic-Tac-Toe Description: Play Tic-Tac-Toe by clicking on the screen to fill the white spaces with red for X and green for 0. Demo: https:/

null 1 Apr 16, 2022
Beautiful Nike Web Design Concept With Flutter Beautiful Nike Web Design Concept With Flutter

flutter_web_nike A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Pawan Kumar 23 Jan 28, 2022
Travel-Application-Ui-design - A Simple Travel Application Ui design For Flutter

Flutter Simple Travel Application UI Design A part of #flutter100daysofcode. Let

Lutfur Rahman 0 Jan 28, 2022