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

Android version run failed in main branch #10

Closed
AlvinChen1028 opened this issue Jan 16, 2024 · 4 comments
Closed

Android version run failed in main branch #10

AlvinChen1028 opened this issue Jan 16, 2024 · 4 comments
Labels
question Further information is requested

Comments

@AlvinChen1028
Copy link

I try to run it in Android Studio with emulator, but it runs failed. The root cause is: in 'build.gradle', it defines targetSdk to '31', but in the code (GPUPixelSourceCamera.java) is still using the 'Camera' APIs which have been deprecated. Or anything am I doing wrong?

@jaaronkot jaaronkot added the question Further information is requested label Jan 21, 2024
@jaaronkot
Copy link
Collaborator

jaaronkot commented Jan 21, 2024

I will try the emulator and if I can reproduce the issue, I will fix it. If you already have a solution, please write it here.

@jaaronkot
Copy link
Collaborator

I have already run it on the emulator, and the demo crashed because the emulator does not have a camera. In the screenshot, there are the error details and information about my emulator device, but it does not report the specific error you mentioned. Xnip2024-01-21_11-19-38

@jaaronkot
Copy link
Collaborator

Please try version 1.0.6 or the newest main branch code. The android app can run emulator now. See b669984
Xnip2024-01-21_15-28-45

@AlvinChen1028
Copy link
Author

Thanks. It works on emulator with webcam connected in android studio. BTW, rename 'src/util.h' to 'src/Util.h', otherwise, the lib would be compiled failed. And set minSDK from '31' to '34'.

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

No branches or pull requests

2 participants