albert-heijn-technology / platform_maps_flutter

A Flutter package to provide the native maps to Android/iOS
BSD 2-Clause "Simplified" License
80 stars 64 forks source link

Error when trying to build the app #19

Closed OmarYehiaDev closed 4 years ago

OmarYehiaDev commented 4 years ago

Hello there, once I saw the package I think it's great so I converted my GoogleMap widget into PlatformMap widget but when I tried to build the apk for the project it throws an error and here is it :-

Running Gradle task 'assembleRelease'...                        
Running Gradle task 'assembleRelease'... Done                     357.1s (!)
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 apple_maps_flutter...
Running Gradle task 'assembleAarRelease'...                             
Running Gradle task 'assembleAarRelease'... Done                   12.2s

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'apple_maps_flutter'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

* 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 11s

The plugin apple_maps_flutter could not be built due to the issue above.

So how can I solve it??