Baseflow / Baseflow/flutter-geolocator

error: cannot find symbol void setActivity(@Nullable Activity activity) { ^ symbol: class Activity location: class MethodCallHandlerImpl

Open
#1,776 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
1.3k
Forks
803
Avg merge
8h 16m
Merged PRs (30d)
1

Description

### Please check the following before submitting a new issue.

- [x] I have searched the [existing issues](https://github.com/baseflow/flutter-geolocator/issues).
- [x] I have carefully [read the documentation](https://github.com/Baseflow/flutter-geolocator/blob/main/geolocator/README.md) and verified I have added the required platform specific configuration.

### Please select affected platform(s)

- [x] Android
- [ ] iOS
- [ ] Linux
- [ ] macOS
- [ ] Web
- [ ] Windows

### Steps to reproduce

error: cannot find symbol
void setActivity(@Nullable Activity activity) {
^
symbol: class Activity
location: class MethodCallHandlerImpl

### Expected results

error: cannot find symbol
void setActivity(@Nullable Activity activity) {
^
symbol: class Activity
location: class MethodCallHandlerImpl

### Actual results

error: cannot find symbol
void setActivity(@Nullable Activity activity) {
^
symbol: class Activity
location: class MethodCallHandlerImpl

### Code sample

Code sample

```dart
[Paste your code here]
```

### Screenshots or video

Screenshots or video demonstration

[Upload media here]

### Version

14.0.2

### Flutter Doctor output

Doctor output

```console
[Paste your output here]
```

Contributor guide

Open the contributing guide

Research direction

Search the Android source for MethodCallHandlerImpl and the setActivity method, then reproduce the reported compile error with version 14.0.2. Confirm the Android build completes without the missing Activity symbol and document the environment or configuration needed to verify the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter, java
Domain
mobile-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.