Posts

Showing posts from October, 2020

Solve the Flutter Outline shows "Nothing to show" in Android Studio

Image
  Solution: Click on the red recycle icon of the Dart Analysis windows Have you wondered why the Flutter Outline doesn't show anything? I googled it and found many answers. Strangely the accepted answer on stackoverflow.com, which has got 144 helpful votes, doesn't actually solve the issue, especially in my case. Therefore I wrote about it here to help other people. As you can see in that link above, there are 9 answers to that particular questions. In my case, only two actually work i.e. clicking on red recycle icon in the Dart Analysis window.  Here we are folks. As a programmer you wasted a lot of time googling and try any solution written, which most of the time don't work. Only after trying many things you may hit the correct one! Cheers!

Solve flutter doctor android licenses error

Image
error: flutter doctor --android-licenses Life as a programmer seems sometimes like a pain (luckily a true programmer loves such a life :). You could spend hours only to fix a small error. That happened to me recently. Suddenly flutter doctor threw error of android licenses (see the screenshot above). I spent hours browsing for solution on the web (esp. stockoverflow.com). Unfortunately some accepted solutions there didn't really solve the problem I had. Therefore I feel the need to document it here to help other users who happen to face the same issues. In short: simple "export JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'" as some have suggested doesn't work! These are the steps that solve the issue (not inside the Android Studio terminal, because Android studio has its own jdk version): 1. Install openjdk8: sudo apt install openjdk-8-jdk 2. Select java8 as default: sudo update-alternatives --config java and select jdk8. 3. make sure

For the first time I pre-ordered a phone without reading any review. Why?

Image
  I have done what I normally not do: pre-ordered Google Pixel 5, without reading a review. Why? Google is to blame. For years I had always chased the flagship phones, like Samsung Galaxy S or Galaxy Note series and later on OnePlus devices. I regularly changed phone after 8-10 months! One thing that wasted a lot of time was customising, because there was always something I didn't like and even bothered me. Until Google Pixel 2 entered the scene in October 2017! That phone spoilt me, the only thing I had to change was the wallpaper. Apart from that everything works smoothly and a lot of my friends asked me with which camera I took my photos. And it's still my primary device until now. By the end of last year I thought Pixel 2 needed an upgrade, not because it was not working well, but I just wanted to try a new flagship. At the time OnePlus 7T (OP7T) was claimed the best smartphone on various websites. The long-term review of gsmarena.com and of MKBHD influenced my decision.  S