Dear friend, we, the rest of the NativeScript community really
appreciate your feedback! While we are doing all we can to take care of every
issue, sometimes we get overwhelmed. Because of that, we will consider issues
that are not constructive or problems that cannot be reproduced "dead".
Additionally, we will treat feature requests or bug reports with unanswered
questions regarding the behavior/reproduction for more than 20 days "dead". All
"dead" issues will get closed.
I am a relatively new mac user os any help would be appreciated.
After having installed nativescript I am trying to create an emulator. I have used the command:
avdmanager create avd --package "android-25" --name "foo"
and the error I get is:
Error: Package path is not valid. Valid system image paths are:ository...
null.
I can't seem to locate a fix to this problem. Any help?
Yes.
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
Check the description earlier.
iOS/Android/Both
Both.
tns --version
to fetch it)node_modules/tns-core-modules/package.json
file in your project)"tns-android"
and "tns-ios"
properties in thepackage.json
file of your project)package.json
file of yourtns --version
4.0.0
tns doctor
โ Getting environment information
โ Your ANDROID_HOME environment variable is set and points to correct directory.
โ Your adb from the Android SDK is correctly installed.
โ The Android SDK is installed.
โ A compatible Android SDK for compilation is found.
โ Javac is installed and is configured properly.
โ The Java Development Kit (JDK) is installed and is configured properly.
โ Xcode is installed and is configured properly.
โ xcodeproj is installed and is configured properly.
โ CocoaPods are installed.
โ CocoaPods update is not required.
โ CocoaPods are configured properly.
โ Your current CocoaPods version is newer than 1.0.0.
โ Python installed and configured correctly.
โ The Python 'six' package is found.
No issues were detected.
โ Getting NativeScript components versions information...
โ Component nativescript has 4.0.0 version and is up to date.
โ Component tns-core-modules is not installed.
โ Component tns-android is not installed.
โ Component tns-ios is not installed.
The best approach would be to get your code running in the NativeScript Playground and share the link with us, along with any additional details or steps to reproduce needed for examining the issue there.
It's a command line issue so I am guessing it has something to do with my file system.
Basically when I run:
avdmanager create avd --package "android-25" --name "foo".
The system gives me the error:
Error: Package path is not valid. Valid system image paths are:ository...
null.
this doesn't work:
avdmanager create avd --package "android-25" --name "foo"
this will also not work:
avdmanager create avd -n test -k "android-25" -c 1000M -f -p ~/.android/avd
Thanks @Juliusdz!
This did the trick:
$ cd $ANDROID_HOME/tools/bin
$ ./sdkmanager "system-images;android-25;google_apis;x86"
$ ./sdkmanager --licenses
(I had to accept all licenses)
Yes, I had exact same error. You need to download Android emulator image / package. So I made all steps as in my comment and now it works fine.
p.s. and your command should be avdmanager create avd -n test -k "system-images;android-25;google_apis;x86"
as stated in docs
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Thanks @Juliusdz!
This did the trick:
$ cd $ANDROID_HOME/tools/bin
$ ./sdkmanager "system-images;android-25;google_apis;x86"
$ ./sdkmanager --licenses
(I had to accept all licenses)