I have installed the command line tools of android, correctly configured all environment variables.
When I am creating a virtual device with this command:
avdmanager create avd -n test -k "system-images;android-23;google_apis;x86"
It gives the following error:
error: package path is not valid. valid system image paths are:ository... null
I have already installed the SDK tool : sdkmanager "system-images;android-23;google_apis;x86"
And accepted the licenses sdkmanager --licenses
But still it's showing the same error.
By the way, I am using it for react-native
In order to resolve your issue, you need to first run the cmd sdkmanager --list
. A list will be populated with installed & available modules make sure: you have installed
sdkmanager build-tools 30
sdkmanager platform 30
sdkmanager "system-images;android-30;google_apis;x86"
sdkmanager "system-images;android-30;google_apis;x86_64"
After installing or making sure the above are installed you can go ahead on creating avd.
avdmanager create avd -n TestAVD -k "system-images;android-30;google_apis;x86" --device "Pixel_4"
emulator -list -avds
emulator @TestAVD
I've resolved the issue by installing image first like
sdkmanager --install "system-images;android-23;google_apis;x86"
and then it is possible to create a emulator
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With