Skip to content
This repository was archived by the owner on Jun 25, 2019. It is now read-only.
This repository was archived by the owner on Jun 25, 2019. It is now read-only.

NoSuchMethodError #57

@nitneuq33000

Description

@nitneuq33000

Currently I launch the map when I receive sms with coordinate, for this ,

1/ I send sms
2/ I read the reply
3/ I extract coordinate (lat long)
4/ I save value with shared preference
5/ after save I launch mapview with the lat and long coordinate

after update flutter I have this error bellow, only when I erase icone app and release a new app. If I just hot reload I havn't this error and map is launch correctly.

@patch
dynamic noSuchMethod(Invocation invocation) {
// TODO(regis): Remove temp constructor identifier 'withInvocation'.
throw new NoSuchMethodError.withInvocation(this, invocation);
}

If I launch showMap(); after Onpressed Button I have no issues.

I have this error when I place showMap here:

_loadgeoValue() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
setState(() {
lat = (prefs.getDouble('lat'));
long = (prefs.getDouble('long'));
});
showMap();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions