Comments (4)
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.9.0" apply false
}
Open settings.gradle file under android directory and update the version to 1.9.0 of id "org.jetbrains.kotlin.android"
This worked for me.
from flutterlocation.
Thanks @faithinker you saved me
from flutterlocation.
I had same Issue But I solved this problem.
It's only appears in the Android OS environment.
There are two solution.
-
Change to pub location -> geolocator
It's easy -
Fix Bug
2-1) pub spec add location: ^6.0.1
2-2) you will encounter below first fix Error.
2-3) change the minSdkversion in android/app/build.gradle
2-4) you will encounter below second fix Error.
2-5) you add buildscript code at android/build.gradle
2-4) you will same encounter second fix Error.
2-5) And Then you change kotlin.android version in android/settigns.gradle
And the It's run Success
from flutterlocation.
Related Issues (20)
- Heading feature shows wrong values.... HOT 1
- How to disable notifications while running in the background HOT 1
- Kotlin version 1.8.0 and Flutter version 1.19.0 HOT 11
- Notification not showing properly, always default
- Background location indicator is always shown on iOS >= 11.0
- Fetching Incorrect Location for tablet Devices
- location_web: migrate from `package:js` to `package:js_interop` HOT 3
- location: ^6.0.0 is incompatible with latest firebase_core: ^2.27.2 HOT 2
- The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. HOT 4
- PlatformException(UNEXPECTED_ERROR, 17: API: LocationServices.API is not available on this device. Connection failed with: b{statusCode=SERVICE_INVALID, resolution=null, message=null}, null, null)
- [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, Service.startForeground() not allowed due to mAllowStartForeground false: service com.xxx.app/com.lyokone.location.FlutterLocationService
- package issue HOT 4
- Consider adding a iOS privacy manifest HOT 3
- "location.getLocation()" sometimes doesn't work HOT 1
- Background location stop working in IOS after 10 minutes.
- Please add pausesLocationUpdatesAutomatically setting for IOS HOT 1
- Location().serviceEnabled() retrun true Although the permission is not allowed only for android HOT 1
- Not working in background when location change in Samsung latest new version android 14 version 6.1 samsung s24
- [Dead Lock] getLocation() never return on iOS 17.4 simulator HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutterlocation.