Upgrade gradle, NDK version, target version, fix permission issues#730
Upgrade gradle, NDK version, target version, fix permission issues#730ernestp wants to merge 1 commit into
Conversation
|
@ernestp were you able to get the app connected to modern usb cameras? I got your updated code to compile and run with the latest Android Studio, but my camera, which I got from Amazon, is not detected. |
|
@w3ichen It work with my camera, but I need to restart the app after install and first run. If your camera is working with apk from https://github.com/jiangdongguo/AndroidUSBCamera/tree/master then it should work with this pull request. However issue comes from increasing target SDK version. Try to set target SDK version to 27 as in original repo and check if that is fixes issue for you. |
|
@ernestp thanks. I'm using your branch with target SDK set to 27. It seems to recognize the camera, but it has 2 issues: no videofeed/preview is showing (just blank screen), and when I click the shutter button, I get an error about unable to write to storage. Have you faced this issues before? Thanks for your help! |
|
@ernestp good job 09-01 04:00:56.950 1113 979 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: binder:1113_13 |
|
@w3ichen i don't know whether you had solved or not , i encountered the same issue, and now i found the solution.
Also , i met another issue about ndk compile , follow @ernestp Upgrade gradle, NDK version, target version, fix permission issues RP , that's helpful . But i met ndkBuild task invoke twice that makes gradle ndk compile failed . modify libuvc.gradle as below will solve . do not depends on JavaCompile which is the reason that makes ndk task invoke twice . reigister before prebuild works |
|
Thanks @HanselLi, I realized that the USB camera worked with my newer Android phone and not my old one, so I switched to my other phone instead. But I appreciate the help! |
|
Thanks for the discussion here. Since this repository does not appear to be actively maintained anymore, I’ve continued development and maintenance independently at: Please feel free to check the current state of the code there and file issues or contribute if needed. |
Following changes to make it compile and run under latest Android Studio: