diff --git a/pythonforandroid/recipe.py b/pythonforandroid/recipe.py index c476eaa31d..db3f55e8ce 100644 --- a/pythonforandroid/recipe.py +++ b/pythonforandroid/recipe.py @@ -668,7 +668,13 @@ def build_arch(self, arch, *extra_args): env = self.get_recipe_env(arch) with current_directory(self.get_build_dir(arch.arch)): - shprint(sh.ndk_build, 'V=1', 'APP_ABI=' + arch.arch, *extra_args, _env=env) + shprint( + sh.ndk_build, + 'V=1', + 'APP_PLATFORM=android-' + str(self.ctx.ndk_api), + 'APP_ABI=' + arch.arch, + *extra_args, _env=env + ) class PythonRecipe(Recipe):