Flutter-AssetsAudioPlayer icon indicating copy to clipboard operation
Flutter-AssetsAudioPlayer copied to clipboard

SDK location not found. Define location with an ANDROID_SDK_ROOT

Open huxaiphaer opened this issue 4 years ago • 4 comments

Flutter Version

My version: Flutter 2.2.3 • channel stable

Lib Version

My version : assets_audio_player-3.0.3+6

Platform (Android / iOS / web) + version

Platform : Android

Describe the bug

Can't run the project because of this error :

  • What went wrong: Could not determine the dependencies of task ':compileReleaseAidl'.

SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/lutaayaidris/.pub-cache/hosted/pub.dartlang.org/assets_audio_player-3.0.3+6/android/local.properties'.

Small code to reproduce

N/A

huxaiphaer avatar Jul 25 '21 11:07 huxaiphaer

I suffer I can't do anything because of this bug any improvement

oooooALIooooo avatar Aug 15 '21 21:08 oooooALIooooo

I have the same problem

enviro-apps avatar Sep 03 '21 18:09 enviro-apps

Hello Guys, @oooooALIooooo @huxaiphaer I fixed that by adding this do my app/build.gradle configurations.all { resolutionStrategy { force 'androidx.core:core-ktx:1.6.0' } }

enviro-apps avatar Sep 05 '21 08:09 enviro-apps

Hello Guys, @oooooALIooooo @huxaiphaer I fixed that by adding this do my app/build.gradle configurations.all { resolutionStrategy { force 'androidx.core:core-ktx:1.6.0' } }

This worked for me! Thanks!

kumardennis avatar Sep 09 '21 13:09 kumardennis