Hii… flutter Community, I’m new to flutter and facing lot of difficulty here, I wanted to show message of asking location permission in my app, also I want user location, I watch almost every you tube video also search on web but My code is not running and I’m stuck here for more than 2 days please help me to get out from here
my error is given below:
simple_permissions uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: Supporting the new Android plugins APIs | Flutter.
Launching lib\main.dart on TECNO IN2 in debug mode…
Running Gradle task ‘assembleDebug’…
FAILURE: Build failed with an exception.
**** What went wrong:***
Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.
> Failed to find Platform SDK with path: platforms;android-31
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 34s
Exception: Gradle task assembleDebug failed with exit code 1
can anybody give me the (logic)code/solution of location permission.