-
Notifications
You must be signed in to change notification settings - Fork 46
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
Skip created a corrupted emulator in ADB #120
Comments
Skip doesn't ever create or launch an emulator. As you point out, this would be a nice feature that we would like to add in the future, but currently we require it to have already been started, either by launching it from Android Studio or via the command line. I've never seen the issue you describe, nor have I seen an "offline" emulator before, but I suppose it is possible that something could have been created as an accidental side-effect of the launch script that is run as part of the build phases for the app target from Xcode. In any case, one solution that I didn't see mentioned in the Stack Overflow article would be to open the Device Manager from Android Studio's "Tools" menu, and then see if the zombie emulator is listed there. If it is, you should be given an option to delete it. Please let us know if this helps – if not, we'll help you figure it out. In any case, we're interested in the solution to the problem so we can document it. Also, in the interim, if you are having issues with the zombie emulator preventing you from using other tools that assume a single (functional) emulator running, you can usually specify the emulator to use by setting the |
I was able to confirm its something Skip is doing, the Oddly enough I happened to run
Yep I already tried that, sorry I should have been specific about that earlier.
I appreciate the support, let me know what I can do to help diagnose this. I am happy to provide logs or something if needed.
I had to |
Problem
I just set up Skip on my laptop and forgot to open the Android emulator before building the
hello-skip
test app in Xcode. This obviously failed but somehow added an emulator that doesn't exist which shows up as offline when I runadb devices
:I have verified that the Android emulator does not exist and
qemu
is not running. This entry does not show up when I run the same command on theadb
exec located at~/Library/Android/sdk/platform-tools/adb
nor does it show up when I run~/Library/Android/sdk/emulator/emulator -list-avds
.Attempted Resolution
I have tried to resolve this by:
~/.android
and~/Library/Android
and letting Android Studio recreate them during initial setupI also tried to dig through the Skip code to find how this is happening but I was unable to find anything that stood out. This could also be a bug in ADB that Skip is unknowingly triggering.
Additional Thoughts
Is there a reason why Skip doesn't just boot the emulator directly instead of requiring the user to manually start it? This could be accomplished very easily by doing something like:
This is preventing me from using Skip entirely and has also broken
adb
for other use cases which do not handle multiple devices well.The text was updated successfully, but these errors were encountered: