I am using Firebase in my project to get the data. Problem is when I run debug version app works fine and show the fetched data but when I create a release version of it and then open my application It's shows blank screen. It is strange and I am not getting why this happening. To understand the issue I have given the two videos of it and also the project repository link, and the problem I am facing in the Book_Screen.dart.
Project Link: https://github.com/jaydip-pawar/Hindi-Audio-Bible
In Debug Version:
In Release Version:
It is hard to catch problem in release mode. But you can try to open "Uncaught Exception" from the debug panel and if some error occurs, try to fix them.
If you can't solve the problem, you can comment widgets one by one. In this way, you can look for the specific lines of code that causes the error.
If you are using playstore inbuilt keystore, add those sha1 from playstore to firebase app setting.
Related
I am new to flutter build some applications only. Currently, I was working on a small project with API every this was fine but when I build the release of the application it starts showing nothing (no API are able to load data)and I am unable to find what is a problem with my app. Tried almost every possible this I can find out.
already given all the permission that is required for the application.
any help will be appreciated.
thank you in advance.
Did you mentioned INTERNET permission in the mamifest file?
I just build my apk to test it on the phone but I got some weird errors like
the dialogue box that opened on the onTap method stopped working but before or in the debug mode it is still working.
the image picker has the same problem that it is not working in apk but it is working when running through android studio.
does anyone know any reason behind this is why this is happening?
it would be really helpful if you could help.
For some design issue it may occure in release mode. Where in debug mode we get some warning and ignore that but in release mode without solving those design issue it won't run smoothly. try to find if there has any design issue like
'Incorrect use of ParentDataWidget.'
So solution is
Run you app in debug mode and check logs, I am sure you will find the problem there.
After trying to run my app, I ran into a problem that I believe is for my info.plist. I am not using Firebase or anything and this is a very simple app. Additionally, I am having the same problem with all my previous projects too. I also ran flutter doctor -v and there were no reported problems and everything is up-to-date. I have included the error message that I keep getting. Any help would be much appreciated.
Additionally, I tried to look up the problem on GitHub; however, the results that I was getting were not much help. I did try to make sure the key and value I had were compatible with each other in my info.plist within Android Studio.
Error I get after each run
I am very beginner in flutter development so have very little knowledge about its working but need to clear my doubt.
I had created an app using flutter create command and a sample flutter project directory is created. When I opened the app using visual studio code and run the app over the physical device an app is created in my device and showing the basic increment counter feature on the screen which is due to the code written in main.dart file.
I remove all the content of main.dart file and wrote my code there and reload it. The app is working fine.
The problem is everytime when I connect my device with my computer I am getting the UI of the sample project created initially and only after reloading again I am getting my new UI.
This problem only exists when first time I am connecting my mobile for debugging and after reloading it is resolved.
Why I am getting the old UI (the one with counter generate while created app for the first time) even though there is no code regarding the same.
Thanks
This is happening because you are using hot reload only. Stop the app from the IDE and rebuild. Then after restarting the emulator will be no problem.
This is a kind of bug. I also faced the same problem and finally i fixed it using flutter clean from the terminal. Hope you also already fixed it.
Yesterday i was testing my app in the iOS simulator and everything was working fine. I then decided to run the app on my iPhone and i got the error unable to install application, Unknown error occurred this has happened before so I cleaned my build folder (as this has fixed this issue before) however, the same error occurred. I then ran the app in the iOS simulator again and now i get the error Unable to run app in Simulator, An error was encountered while running (Domain = LaunchServicesError, Code = 0). I find this very weird as i didn't change anything besides trying to run the app on my iPhone. I have tried every solution given on this post and still no luck.
I'm sorry if my question doesn't contain much detail but as I said I didn't change anything and it was building and running fine a minute before plugging in my iPhone and trying to run it on there.
Any help would be much appreciated.
edit
I tried running other projects (with and without extensions) and they are working on both simulator and iPhone, therefore the problem must be within my project. (my project does have a today extension)
In that kind of cases I usually :
Product > Clean
Close xCode
Delete the Derived Data (in ~/Library/Developer/Xcode/DerivedData subfolders)
Delete the app on the iPhone
Reboot the iPhone
Restart and rebuild
I had this problem. In my case, it was caused by the Build value being blank. After putting a value there, and resetting the simulator once more, the issue went away.
I had the same problem and checking the system log carefully helped me to identify a coliding library that was causing this error. You can also check this answer if you are using extensions.
Generally it means there is a problem with the build, it may be due to old cache (solved by a clean build) or a project definition error (missing library, bad definition in info.plist, etc).
In my case it happened only on iOS 8, turns out that my widget had the wrong bundle ID.