Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recompile with -Xlint #13

Open
meshubhama01 opened this issue Aug 15, 2020 · 2 comments
Open

Recompile with -Xlint #13

meshubhama01 opened this issue Aug 15, 2020 · 2 comments

Comments

@meshubhama01
Copy link

just clone this repo and run on android studio and run into following error.

Note: C:\src\flutter\flutter.pub-cache\hosted\pub.dartlang.org\permission_handler-3.3.0\android\src\main\java\com\baseflow\permissionhandler\PermissionHandlerPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

and followed by built with 401 response code .

@meshubhama01
Copy link
Author

even after changing the api key my new key still got the following error

The following _TypeError was thrown building Builder:
type 'int' is not a subtype of type 'double'

The relevant error-causing widget was:
MaterialApp file:///C:/Users/SHUBHAM/AndroidStudioProjects/Clima-Flutter-Completed/lib/main.dart:9:12

@sandeep1dimri
Copy link

even after changing the api key my new key still got the following error

The following _TypeError was thrown building Builder:
type 'int' is not a subtype of type 'double'

The relevant error-causing widget was:
MaterialApp file:///C:/Users/SHUBHAM/AndroidStudioProjects/Clima-Flutter-Completed/lib/main.dart:9:12

pls try if following solves your error:
setState(() {
double temp = (weatherData['main']['temp']).toDouble();
this.temperature = temp.toInt();

if this does not solve, pls share the code which is throwing this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants