Problem to build the javacv-camera-preview project

15 views
Skip to first unread message

Menegussi

unread,
Dec 7, 2022, 6:03:28 PM12/7/22
to javacv
Hi! I don't know how to solve this problem below. 

> Configure project :app
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to C:\Users\andre.menegussi\AppData\Local\Android\Sdk\ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

I've tried some tips found on google but I dont know how to fix, it.

Can you help, me?

Regards, 

André

Samuel Audet

unread,
Dec 7, 2022, 6:29:15 PM12/7/22
to jav...@googlegroups.com, Menegussi
That sample project hasn't been updated recently. Try this one instead:
https://github.com/bytedeco/sample-projects/tree/master/JavaCV-android-example

Menegussi

unread,
Dec 7, 2022, 9:26:44 PM12/7/22
to javacv
Hi Samuel, thanks for the response.  This one I'm able to execute in my Moto G-10 phone.

Do you have some updates on  javacv-camera-preview project ?

My idea is to use a cell phone or a tablet to count the face detections and other features. 

After some tries on javacv-camera-preview project I was able to compile and run in the emulator with some errors and close the app, bur if i try to install in my Moto G-10, the messages below apears on logcat:

Installation did not succeed.
The application could not be installed: INSTALL_FAILED_NO_MATCHING_ABIS

List of apks:
[0] 'C:\Users\andre.menegussi\Downloads\sample-projects-master\sample-projects-master\javacv-android-camera-preview\app\build\outputs\apk\debug\app-debug.apk'
Installation failed due to: 'Failed to commit install session 345911349 with command cmd package install-commit 345911349. Error: INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113'

DO you have any idea what is the problem?

Thanks.

André

Samuel Audet

unread,
Dec 7, 2022, 11:08:52 PM12/7/22
to jav...@googlegroups.com, Menegussi
We can more simply add just the source files from that project into the
other already working project.

Menegussi

unread,
Dec 8, 2022, 8:31:46 AM12/8/22
to javacv
Hi! 
I will try it.
Do you have any idea why the project runs on the emulator and not in the smartphone, in the case of camera preview project?

Thanks

Reply all
Reply to author
Forward
0 new messages