Skip to content
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

Size import missing in certain samples that use VisionPortal.setCameraResolution() #946

Open
CalKestis opened this issue Feb 21, 2024 · 0 comments

Comments

@CalKestis
Copy link
Collaborator

Applies to v9.0.1 and earlier.

Certain samples contain a commented out line that calls VisionPortal.setCameraResolution(Size cameraResolution). If this line uncommented, and you are using OnBot Java for development, the build will break because OnBot Java will not auto import the Size class, and the sample is not shipped with the Size be default in its list of import statements.

To fix the problem simply add

import android.util.Size;

to the list of existing imports at the top of the file.

v9.1 has the necessary import added by default.

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

No branches or pull requests

1 participant