NativeScript With Android Emulator on Arch Linux
Today I wanted to try out NativeScript:
NativeScript enables you to build truly native apps for iOS, Android, and the Web, from a single JavaScript code base. With support for TypeScript, CSS, and popular frameworks like Angular and Vue.js.
Install NativeScript Either use Arch’s native packager or npm.
With the AUR:
yay -S nativescript If you choose to install NativeScript via Node, do it like this:
npm i -g nativescript Now you can bootstrap a NativeScript:
TIL About INSTALL_FAILED_INSUFFICIENT_STORAGE on Android
I’m working on a Flutter REST API. I type into the command-line: flutter run -v to start the application.
But that doesn’t work:
INSTALL_FAILED_INSUFFICIENT_STORAGE Why? There is still enough storage space on my local machine.
The error is Android-specific. When you run the Android emulator, it creates an ADB device.
When you develop your app, Flutter (or Android SDK) will install packages into ADB.
It looks like that fills up the (virtual) storage space.
Flutter Android Emulator Cheatsheet for the Command Line
Prerequisites Working installations of:
Dart & Flutter SDK Android SDK a working AVD emulator Commands Inside your Flutter project directory:
List available emulators emulator -list-avds Start Flutter emulator flutter emulator –launch <name-of-emulator> Stop Emulator Android:
adb emu kill Flutter Checks flutter doctor or
flutter doctor -v You don’t need Android Studio but there should be checkmarks for Flutter, Android toolchain and ocnnected device.
Connect Flutter Project to Emulator flutter run or
How to Get Flutter and Android Working on Arch Linux
Getting Flutter and Android working together is no small feat.
Linux may be a first-class citizen when it comes to developing with Flutter, but setting up Java, Android and the Android tool-chain can be a real hassle.
This blog post shows how get Flutter working with Android SDK without installing Android Studio.
Android Studio is a fully-fledged IDE. If you want to use a different development editor (like Vim or VS Code), Android Studio is only good for eating space on your hard drive.