preetmungara / Expense_manager

Manage your finance at one click.
0 stars 0 forks source link

too many bugs found #1

Open tayyabbashir2224 opened 2 years ago

tayyabbashir2224 commented 2 years ago

when i run this command flutter build apk --split-per-abi
i got following errors..
The plugins flutter_image_compress, local_auth use a deprecated version of the Android embedding.To avoid unexpected runtime failures, or future build failures, try to see if these plugins supportthe Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding:
https://flutter.dev/go/android-plugin-migration.

Building without sound null safety For more information see https://dart.dev/null-safety/unsound-null-safety

Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01


WARNING: This version of local_auth will break your Android build if it or its dependencies aren't compatible with AndroidX. See https://goo.gl/CP92wY for more information on the problem and how to fix it. This warning prints for all Android build failures. The real root cause of the error may be unrelated.


FAILURE: Build failed with an exception.

BUILD FAILED in 18s Running Gradle task 'assembleRelease'... 19.9s [!] Gradle threw an error while downloading artifacts from the network. Retrying to download...


WARNING: This version of local_auth will break your Android build if it or its dependencies aren't compatible with AndroidX. See https://goo.gl/CP92wY for more information on the problem and how to fix it. This warning prints for all Android build failures. The real root cause of the error may be unrelated.


FAILURE: Build failed with an exception.

preetmungara commented 2 years ago

configure dependency accordingly and link firebase account and try again. and as it uses deprecated dependency so you might need to rewrite everything if you update dependency.

tayyabbashir2224 commented 2 years ago

configure dependency accordingly and link firebase account and try again. and as it uses deprecated dependency so you might need to rewrite everything if you update dependency.

i have fixed almost all warnings and some errors as i am noob to flutter i need your help to fix some more issues i have found at https://github.com/Preetmungara/Expense_manager/blob/9f58a5538496e4ce01b63693e8c49d6bb3614ab4/lib/pages/imageCapture.dart#L124 https://github.com/Preetmungara/Expense_manager/blob/9f58a5538496e4ce01b63693e8c49d6bb3614ab4/lib/pages/imageCapture.dart#L131 https://github.com/Preetmungara/Expense_manager/blob/9f58a5538496e4ce01b63693e8c49d6bb3614ab4/lib/pages/imageCapture.dart#L143 https://github.com/Preetmungara/Expense_manager/blob/9f58a5538496e4ce01b63693e8c49d6bb3614ab4/lib/pages/imageCapture.dart#L144 https://github.com/Preetmungara/Expense_manager/blob/9f58a5538496e4ce01b63693e8c49d6bb3614ab4/lib/pages/imageCapture.dart#L154 the errors are in picture. imageCapture dart - Expense_manager-master - Visual Studio Code 31-Dec-21 12_49_54 AM and in login.dart at line 34 and 38 imageCapture dart - Expense_manager-master - Visual Studio Code 31-Dec-21 12_57_00 AM i will be very thankful if you help me to resolve this errors.

preetmungara commented 2 years ago

Actually I moved on from Flutter ecosystem quite a long time, but it looks like error is due following reason.

when you use latest version of library. some class name is changed, you can check changelog of particular library at https://pub.dev/ and check what changes are done, here problem is this project is using old version of library and you've used new version in pubspec.yaml , so I think in new version some classes and some modification is there for which actually you've to go through library documentation, no other way. and error is configuring firebase authentication so what you can do is learn how to configure firebase authentication and database for that you can read official firebase documentation and configure accordingly.

tayyabbashir2224 commented 2 years ago

Hello Agian, i am migrating your app to nullsafety and i got 206 errors warnings in total and i just have 57 to fix by the help of pub.dev and stackowerflow.com now i am in login.dart and i am getting error The getter 'message' isn't defined for the type 'Object'. Try importing the library that defines 'message', correcting the name to the name of an existing getter, or defining a getter or field named 'message' https://github.com/Preetmungara/Expense_manager/blob/9f58a5538496e4ce01b63693e8c49d6bb3614ab4/lib/pages/login.dart#L48 and line https://github.com/Preetmungara/Expense_manager/blob/9f58a5538496e4ce01b63693e8c49d6bb3614ab4/lib/pages/login.dart#L75 i do not understand the use of https://github.com/Preetmungara/Expense_manager/blob/9f58a5538496e4ce01b63693e8c49d6bb3614ab4/lib/pages/login.dart#L93 please help me .

preetmungara commented 2 years ago

it is error handling mechanism, if error comes then it will be rendered with Dialog box. make sure that you've configured firebase authentication and all dependency that need in order to work with firebase, so configure firebase with your app. then try again.

tayyabbashir2224 commented 2 years ago

hi i have solved almost all errors in the project and now am stucked at permission_handler ● settings dart - exp - Visual Studio Code 09-Jan-22 7_00_06 PM (2) ● settings dart - exp - Visual Studio Code 09-Jan-22 7_01_52 PM (2)

preetmungara commented 2 years ago

Great, now you've to configure this https://pub.dev/packages/permission_handler dependency properly.

tayyabbashir2224 commented 2 years ago

Hi, I have solved all errors and connected to firebase database and when i run this command

flutter build apk --split-per-abi --no-tree-shake-icons

It Give some error which i can not resolve. FAILURE: Build failed with an exception.

tayyabbashir2224 commented 2 years ago

After some googling i make it run but it is just white screen. :(Sent from my Huawei phone-------- Original message --------From: Preet Mungara @.>Date: Mon, Jan 10, 2022, 7:53 AMTo: Preetmungara/Expense_manager @.>Cc: Tayyab bashir @.>, Author @.>Subject: Re: [Preetmungara/Expense_manager] too many bugs found (Issue #1) Great, now you've to configure this https://pub.dev/packages/permission_handler dependency properly.

—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

preetmungara commented 2 years ago

one thing you should do is whenever any error occurs or something unexpected thing happens, try to search error on google and read discussion about it on stackoverflow and other site, because I might not familiar with all the things [in fact no developer in this world], so search according, you might get answer, because problem I haven't touch flutter from last 1.5 year around so now I'm aware of lot of thing as ecosystem is evolving continuously.