Specified Android native API level 'android-8' is not supported by your NDK/toolchain [closed]

asked 2016-07-07 00:26:17 -0600

updated 2018-12-13 13:19:20 -0600

Specified Android native API level 'android-8' is not supported by your NDK/toolchain. I am getting this error while trying to build JavaCV for android. It says here in comments that specifying native api level using -D options will resolve the issue. The command I have used is :

mvn clean install -Djavacpp.platform=android-arm -DANDROID_NATIVE_API_LEVEL=android-16-Djavacpp.platform.root=/Users/user/android-sdk-macosx/ndk-bundle -Djavacpp.platform.compiler=

What am a I doing wrong here?

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2016-07-07 00:59:28.162720

Comments

javacv is a 3rd party effort, not maintained or supported from opencv.

if you run into any problems, you will have to ask elsewhere.

berak gravatar imageberak ( 2016-07-07 01:00:40 -0600 )edit

Could you at least tell me how to build opencv for Android platform, or point me to a valid link?

codename_47 gravatar imagecodename_47 ( 2016-07-07 01:20:08 -0600 )edit

Do you know how to specify native api level?

codename_47 gravatar imagecodename_47 ( 2016-07-07 01:59:35 -0600 )edit

sorry, but i don't know.

berak gravatar imageberak ( 2016-07-07 03:23:41 -0600 )edit

I have solved the problem of how to install the Opencv library in Android Studio, you can follow the program code that I shared. https://www.ivanjul.com/cara-install-...

Ivan Julian gravatar imageIvan Julian ( 2018-09-30 08:17:50 -0600 )edit