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
opencv build fails with latest sdk in ubuntu 64 bit : Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer. #18131
Comments
@alalek its not incomplete nor needs further inverstigation , its trivial , you can check the workflow at https://github.com/tshirtman/test_p4a_opencv/actions/runs/214390204 , and you can see the same error |
Seems this steems from outdated logic about gradle/ant build in the OpenCVDetectAndroidSDK.cmake file, trying with some more patching of the file in the recipe and to remove the tests and force gradle build. |
Can anyone please help? I am encountering the exact same error and struggling for 4 days but with no improvement.Please help. |
Also struggling with this issue, really dont understand where to even start looking for a solution or fix... any help would be appreciated |
OpenCV is not tested and probably doesn't support modern Android SDK/NDK versions. So try tools from 2018-2019 first. Unfortunately, there are no active Android users in OpenCV development team. If you are Android expert then feel free to contribute through Pull Requests. BTW, there is an example of configuration output from validation builds on public CI:
|
@alalek I tried it with the newest NDK and the only thing I needed to use was the After that I just ran the apps on my phone and everything looked well. |
Can you please explain me the steps? |
@abhishekju06 I left a comment on the official forums here. |
Problem: Android SDK Tools not updated yet. Although Android SDK Build Tools already in high version. I think that .buildozer or sdkmanager has some problem so can't update. Try the following steps for manual installation: Step 1: sudo apt update && sudo apt install android-sdk (Replaceable /usr/lib/android-sdk/tools/ to /home/AccountName/Android/Sdk or /usr/lib/android-sdk or /Library/Android/sdk/ or /Users/[USER]/Library/Android/sdk ) Step 3: Delete folder .buildozer and bin in folder your project |
Setting -DANDROID_SDK_TOOLS_VERSION=... might help |
Fixed in #21736 |
-- Android SDK Build Tools: ver. 30.0.0-rc4 (subdir 30.0.0-rc4 from 30.0.0-rc4)
CMake Error at cmake/android/OpenCVDetectAndroidSDK.cmake:176 (message):
Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer.
Use BUILD_ANDROID_PROJECTS=OFF to prepare Android project files without
building them
Call Stack (most recent call first):
CMakeLists.txt:780 (include)
related to : kivy/buildozer#1144
The text was updated successfully, but these errors were encountered: