Skip to content

Emulator is not available #636

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

Closed
toreal opened this issue Jan 9, 2021 · 8 comments · Fixed by #639
Closed

Emulator is not available #636

toreal opened this issue Jan 9, 2021 · 8 comments · Fixed by #639

Comments

@toreal
Copy link

toreal commented Jan 9, 2021

Here seems a bug.
Processing can not run in an emulator.
Does it forget to add an exclamation mark? !emulator.exists()

final File emulator = sdk.getEmulatorTool();
     if (emulator == null || emulator.exists()) {
       System.err.println("EmulatorController: Emulator is not available.");
       return;      
     }
@ranaaditya
Copy link
Member

Here seems a bug.
Processing can not run in an emulator.
Does it forget to add an exclamation mark? !emulator.exists()

final File emulator = sdk.getEmulatorTool();
     if (emulator == null || emulator.exists()) {
       System.err.println("EmulatorController: Emulator is not available.");
       return;      
     }

Hi @toreal , can you please describe ( preferably Screenshot of the issue) the error / issue you are getting while running Processing sketches on emulator ?

Code seems to be absolutely good without any error !

also please specify your System specifications. It may be possible that your system doesn't support emulators !

thanks,
rana

@toreal
Copy link
Author

toreal commented Feb 23, 2021

Thank you for your response.
I use MacOS.
I download Processing and change it into Android mode.
then download Android SDK, then download emulator and install it.
All is done automatically.

then, I got the error.
EmulatorController: Emulator is not available.

In previous version, everything is fine.
Thus, I try to compare the two versions. I find those code I can not understand well.
emulator.exists but Emulator is not available

@toreal
Copy link
Author

toreal commented Feb 23, 2021

@ranaaditya can you run in the emulator?

@ranaaditya
Copy link
Member

ranaaditya commented Feb 23, 2021

Hi @toreal , did you change the Android SDK location ( or have you set the Android SDK location in Processing ide correctly ?) ?

Check if you are able to run emulator using android studio(if both Processing and android studio are sharing same Android SDK location). Seems like there are some errors while initializing the Emulator for you.

Can you do one more thing - revert back to previous version and check if you are able to run emulator in it.

@toreal
Copy link
Author

toreal commented Feb 23, 2021

Hi @ranaaditya
I can run the emulator from android studio or by command. But Processing still say 'EmulatorController: Emulator is not available.'

Actually, I try to compile from source code and change the source code as the following.
final File emulator = sdk.getEmulatorTool(); if (emulator == null || !emulator.exists()) { System.err.println("EmulatorController: Emulator is not available."); return; }

Then, I can run in the emulator.

@toreal
Copy link
Author

toreal commented Feb 23, 2021

Hi @ranaaditya
I don't know how to revert back to previous version. Can you teach me?

@ranaaditya
Copy link
Member

ranaaditya commented Feb 24, 2021

Hi @ranaaditya
I don't know how to revert back to previous version. Can you teach me?

Hi @toreal , if you are building from the source code then follow:

1.see the commit history (preferabbly in github web client) or use git log command.
2. Copy the hash of the very first commit responsible for new version.
3. Checkout to a new branch(to avoid messing up in your local).
4. do git reset --hard <copied_hash>
5. try to build now

@toreal
Copy link
Author

toreal commented Feb 24, 2021

@ranaaditya Thanks. I can do it from the source code. But I do not know how to use the previous version from the release version. Although, I can build from the source code and use the emulator. But I don't know how to deploy the VR/AR libraries. The VR/AR functions can not work correctly from my build. Thus, I need a released version. I am so surprised that why nobody has the requirement like me waiting to use the emulator?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants