tlserver / flutter_map_location_marker

A flutter map plugin for displaying device current location.
https://pub.dev/packages/flutter_map_location_marker
BSD 3-Clause "New" or "Revised" License
97 stars 82 forks source link

Does not clone properly #82

Closed jdevo2004 closed 9 months ago

jdevo2004 commented 9 months ago

I just tried to clone this using the url link. Missing lib file and other things.

tlserver commented 9 months ago

Any more description? I can successfully clone this project on my new PC yesterday. Have you run pub get to get project dependencies?

jdevo2004 commented 9 months ago

I apologize. It turns out I was looking at "project non source files" instead of "project files". The example clone works properly.

I am having an error when implementing flutter_map_location_marker in my project. I am following the instructions here: https://pub.dev/packages/flutter_map_location_marker

I have added the depencancy flutter_map_location_marker: any and then imported it without problems. I have added import 'package:flutter_map_location_marker/flutter_map_location_marker.dart'; without problems I added CurrentLocationLayer(), under the tile layer without problems.

When I try to run the project there is the following error:

C:\Users\jdevo\henro_helper_real\android\app\src\debug\AndroidManifest.xml Error: uses-sdk:minSdkVersion 19 cannot be smaller than version 20 declared in library [:flutter_compass] C:\Users\jdevo\henro_helper_real\build\flutter_compass\intermediates\merged_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 19 Suggestion: use a compatible library with a minSdk of at most 19, or increase this project's minSdk version to at least 20, or use tools:overrideLibrary="com.hemanthraj.fluttercompass" to force usage (may lead to runtime failures)

FAILURE: Build failed with an exception.

I have tried for some time to troubleshoot this error changing the minSdk version. I assume this package does not require me to install the flutter_compass package but just in case I installed the latest flutter_compass but in doing so it just creates new errors. I have not had this type of error happen for other packages so I assume I am not doing anything wrong.