
This is the minimum API your app will support, it should usually match android.minapi.
#Android ndk r10 apk
# (int) Minimum API your APK will support.
#Android ndk r10 android
# (int) Target Android API, should be as high as possible.

# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy, # red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray, # Supported formats are: #RRGGBB #AARRGGBB or one of the following names: # (string) Presplash background color (for new android toolchain) # (bool) Indicate if the application should be fullscreen or not # change the major version of python used by the app #services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY # (str) Supported orientation (one of landscape, sensorLandscape, portrait or all) #icon.filename = %(source.dir)s/data/icon.png #presplash.filename = %(source.dir)s/data/presplash.png # Sets custom source for any requirements with recipes # (str) Custom source folders for requirements Requirements = python3, kivy, numpy, opencv # version.filename = %(source.dir)s/main.py # (str) Application versioning (method 2) # (str) Application versioning (method 1) #source.exclude_patterns = license,images/*/*.jpg # (list) List of exclusions using pattern matching # (list) List of directory to exclude (let empty to not exclude anything) # (list) Source files to exclude (let empty to not exclude anything) #source.include_patterns = assets/*,images/*.png # (list) List of inclusions using pattern matching Source.include_exts = py,png,jpg,kv,atlas

# (list) Source files to include (let empty to include all the files) # (str) Source code where the main.py live # (str) Package domain (needed for android/ios packaging) Layout.add_widget(Button(text='Hello World')) Layout.add_widget(Image(source='img.png')) My minimal example looks like this: import numpy as np It seems like the opencv recipe is dependent on SDK Tools (revision 14 or higher), which is deprecated since 2017 when it was replaced by SDK command-line tools. See also "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a_ndk_target_21/opencv/build/CMakeFiles/CMakeError.log". See also "/mnt/c/Users/loska/Desktop/test_app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/opencv/armeabi-v7a_ndk_target_21/opencv/build/CMakeFiles/CMakeOutput.log". Configuring incomplete, errors occurred! Use BUILD_ANDROID_PROJECTS=OFF to prepare Android project files without 30.0.0-rc4 (subdir 30.0.0-rc4 from 30.0.0-rc4)ĬMake Error at cmake/android/OpenCVDetectAndroidSDK.cmake:176 (message):Īndroid SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer. 2.0 (description: 'Android SDK Command-line Tools')
#Android ndk r10 update
Update variable ANDROID_SDK from environment: /home/oskar/.buildozer/android/platform/android-sdk

This very simple app also fails to compile at the same point: - Android: fixup -g compiler option from Android toolchain Since I got compilation errors trying to compile my large kivy app with many dependencies to android, I created a minimal example that uses numpy and opencv.
