The new package couldn't be installed in the specified install location because the media is not available


#1

I got the following error after trying to run the hello world example:

tns run android

Searching for devices…
Executing before-liveSync hook from C:\Users\Ao Kin Ecab GGL\HelloWorld\hooks\before-liveSync\nativescript-angular-sync.js
Skipping prepare.
Installing…
Unable to apply changes on device: f9304f32. Error is: The new package couldn’t be installed in the specified install location because the media is not available…
Executing after-watch hook from C:\Users\Ao Kin Ecab GGL\HelloWorld\hooks\after-watch\nativescript-dev-typescript.js


#2

Nevermind, I figured the solution.
The devices was connected as MicroSD mount.
I changed that setting to MTP mode