Skip to content

SDK Tools, Revision 25.3.0 and OpenCVDetectAndroidSDK.cmake #8460

@mishurov

Description

@mishurov
System information (version)
  • OpenCV => 3.2.0
  • Operating System / Platform => Gentoo / Android
  • Compiler => Android NDK toolchain gcc
Detailed description

OpenCVDetectAndroidSDK.cmake doesn't detect an Android SDK after updating to the SDK Tools, Revision 25.3.0.

--     SDK target:                  android_sdk_target_status-NOTFOUND
--     android tool:                NO
~/Android/Sdk/tools/android
The android command is no longer available.
For manual SDK and AVD management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager

An older version of the tools just werks.

https://developer.android.com/studio/releases/sdk-tools.html

SDK Tools, Revision 25.3.0 (March 2017)
...
Obsolete/deprecated tools have been removed:
android
ddms (instead see Using DDMS)
draw9patch (instead see Draw 9-patch)
hierarchyviewer (instead see Profile Your Layout with Hierarchy Viewer)
traceview (instead see Profiling with Traceview and dmtracedump)
ant scripts
Project and activity templates

Steps to reproduce
  1. Update SDK tools using an Android Studio
  2. Try to build an OpenCV for Android with Java wrappers and examples support.

alalek:

Current solution is to downgrade SDK Tools to the latest available version prior 25.3.0: 25.2.5. Direct download links are:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions