-
-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
emulator fail: "Error: Package path is not valid" #1893
Comments
The call to create the AVD for the emulator is failing because it can't find the requested system image. Normally, Briefcase will check if the system image already exists and if not, downloads it. In this case, Briefcase must be finding what it thinks is a system image....but the call to What exists at the file path below?
|
EDIT: I managed to hack it and make it work,but i didn't solve the source problem(s). Here's the way i was walking:
it's mostly empty, and contains only a metadata file ".installData":
and that's it. Then, I tried to run the failing command manually (as indicated in the log) :
Trying to investigate:The error message ("Package path is not valid" or "Valid system image paths are") comes from here: specifically, withing the jar: "...\AvdManagerCli.class". <-- so it's a dead end. I googled "Error: Package path is not valid. Valid system image paths are:", and got this S.O. page Which suggested to get it manually.
It downloaded 4gb of data into It's a progress :) I retried to I re-tried with the same emulator first:
I then tried to create a new emulator, with a different name ("newemu", instead of "beePhone")And now the logs show a different error; there's a missing file:
But there's no such file - or even the containing directory (C:/Users/user/.android/avd/ -- doesn't exist!) searching for "config.ini" anywhere --- AHA !I found it in the wrong place:
now the emulator works.I don't know what to conclude my research, regarding BeeWare's process. HTH ? |
Yesterday, after I posted my original response, I concluded that the system image download must have failed the first time Briefcase tried to create an AVD. But this failure created the file system layout that Briefcase was looking for so in later Briefcase runs, it is concluding that the system image download must have been previously successful and moved on to attempting to create the AVD. However, the system image doesn't exist and AVD creation fails. In your investigation above, you said running So, if my conclusions are correct, there is a hole in Briefcase's logic, either:
I'm leaning towards number 2; ideally this method would match what If you wanted to check, I would be curious if any of the log files created for your project contain the text:
If so, that log file would show an attempt was made at one point to download the system image but it failed....and likely resulted in creating the filesystem layout with just the As for the |
I searched now for environment vars containing either D:\TEMP or ANDROID-USER, but i have neither (in or out the venv). p.s. i'm going to flip to Linux OS next week, |
It would be good to know if the process works for you only using Briefcase. I created #1895 for the system image issue; it'll be good to confirm there aren't other issues lurking that are preventing this working for you. |
I'm going to close this on the basis that #1895 is (as far as we can establish) the underlying issue here, with a more concise description of the problem. Feel free to provide more details if you believe the issue is more than the "failed download" problem described by that new issue. |
Describe the bug
briefcase run android
fails;Otherwise the program running flawlessly.
error log attached
Steps to reproduce
I followed the tutorial;
the only error was at:
briefcase run android
Expected behavior
emulator showing up. i saw it 2 years ago running from windows.
Screenshots
No response
Environment
Logs
log is attached as file due to size
briefcase.2024_07_02-22_11_24.run.log
Additional context
I recreated the environment (deleted everything and reinstalled)
I don't know how to read the logs, or =which "Package path" it referes to.
The text was updated successfully, but these errors were encountered: