Comments (4)
I just checked out this repo then
cd examples
flutter packages get
flutter run
and got the same stacktrace which is caused by location permissions not given yet. I got the Allow location permissions dialog in the app on the simulator. Next I saw lon/lat data.
- After Hardware restart starting the app it crashed.
- Checking the permissions for the app these were set OK. Restarting the App I got lon/lat again.
I guess this is a timing problem somehow?
from flutterlocation.
Same for me as @garyloud. Followed the install instructions, copy/paste the exact example code, and:
`══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following NoSuchMethodError was thrown building MyApp(dirty, state: _MyAppState#01986):
The method '[]' was called on null.
Receiver: null
Tried calling:
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/dart:core/object_patch.dart:46)
#1 _MyAppState.build (/Users/tom/Google Drive/prog/flutter/gps_test/lib/main.dart:64:107)
#2 StatefulElement.build (package:flutter/src/widgets/framework.dart:3690:27)
#3 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3602:15)
#4 Element.rebuild (package:flutter/src/widgets/framework.dart:3463:5)
#5 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3582:5)
#6 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3718:22)
#7 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3577:5)
#8 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2875:14)
#9 Element.updateChild (package:flutter/src/widgets/framework.dart:2678:12)
#10 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:852:16)
#11 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:823:5)
#12 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:769:17)
#13 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2190:19)
#14 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:768:13)
#15 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:657:7)
#16 runApp (package:flutter/src/widgets/binding.dart:699:7)
#17 main (/Users/tom/Google Drive/prog/flutter/gps_test/lib/main.dart:7:3)
#18 _startIsolate. (dart:isolate-patch/dart:isolate/isolate_patch.dart:278)
#19 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:164)
════════════════════════════════════════════════════════════════════════════════════════════════════
*** First throw call stack:
(
0 CoreFoundation 0x00000001096ca12b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000108d5ef41 objc_exception_throw + 48
2 CoreFoundation 0x000000010973f245 +[NSException raise:format:] + 197
3 Runner 0x0000000106f385e5 -[LocationPlugin handleMethodCall:result:] + 789
4 Flutter 0x000000010700b880 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 118
5 Flutter 0x0000000107020583 _ZN5shell15PlatformViewIOS21HandlePlatformMessageEN3fxl6RefPtrIN5blink15PlatformMessageEEE + 189
6 Flutter 0x0000000107048e93 _ZNSt3__110<…>`
from flutterlocation.
@Tom1827 why paste the same info again into the issue? Please try to add new info :-)
from flutterlocation.
This should be fixed with the new version, feel free to open again if it's not.
from flutterlocation.
Related Issues (20)
- Can't get location on android 5 devices
- await location.getLocation() is not retrieving the current location details in Andriod emulator HOT 4
- io.flutter.plugin.common.PluginRegistry$RequestPermissionsResultListener com.lyokone.location.FlutterLocationService.getServiceRequestPermissionsResultListener() HOT 1
- Deprecated HOT 1
- Could not get current location HOT 2
- Apps opened too long because binding location service HOT 5
- Failure in real-time coordinate service
- On dispose method in LocationPlugin.java crashes application
- Location().requestService not working on IOS
- UI Unresponsivness HOT 1
- When listening to location change, calling location.getLocation blocks and does not return any result.
- When listening to location change, calling location.getLocation blocks and does not return any result HOT 3
- one time allow also showing granted as status on reopen. HOT 1
- iOS 15+ variable missing "isproducedbyaccessory"
- Compatibility with Gradle 8 HOT 2
- Incorrect behavior getLocation HOT 2
- Issue between location: ^5.0.3 and Kotlin 1.9.0 HOT 3
- Android version 5
- without internet
- Unable to Built Flutter App [ sdk: '>=3.2.3 <4.0.0' ] HOT 1
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.