How to make Flutter work on WSL2 using host’s emulator?

You cannot use “hot reload” features with flutter app because the process of deployment/running never finishes Actually, you can! Just connect to the device with adb connect <IP> instead of going through the socket. See my full blog post here: https://dnmc.in/2021/01/25/setting-up-flutter-natively-with-wsl2-vs-code-hot-reload/

Can’t update \tools – Android SDK Command Line Tools for Windows

Yeah that’s quite funny. A way to do that is to copy the tools folder to another place (let’s say C:\temp\). Then direct into the C:\temp\tools\bin\, open the cmd prompt there and run your update commands as such: sdkmanager.bat –sdk_root=sdkRootPath –command Where sdkRootPath is path to your original SDK folder (C:\testinstall\sdk\). Once that is done, … Read more

Android SDK Manager – Do you need to install all Android platforms?

Not at all. You just need to install those platforms which you are targeting for your apps and which you intend to test your app with. If I were you, I’d install: API 24 (Multiple app windows, Notification enhancements, Multi-locale support) API 23 (Runtime permissions toggling, Doze mode and BoringSSL) API 21 (Massive changes, including … Read more

android what is the difference between Android Support Repository vs Android Support Library vs Google Repository vs Google Play Services

Google Uses the term repository at the end to specify these are Maven Repository and you should import them using a Gradle dependency like this: dependencies { compile “com.google.android.gms:play-services-gcm:8.4.0” } But the Gradle build system is only supported in Android Studio, where as Eclipse uses the older Ant build system. Also mentioned here in google … Read more

“sdkmanager: command not found” after installing Android SDK

On Ubuntu 18.04, the binary sdkmanager is indeed not included in the apt-package android-sdk. This worked for me: Install android-sdk via apt, as you described: apt-get install android-sdk Set environment variable ANDROID_HOME if not done yet. For example: export ANDROID_HOME=/usr/lib/android-sdk Download and install the command line tools of Android Studio from https://developer.android.com/studio#command-tools. You actually don’t … Read more

tech