Could not build app...: Failed to find any output apks


I have installed a local fdroid server and can build my app through the metadata .yml file.

After building the log has the following:

INFO: Successfully built version 5.0.942 of from 5506625005fc239c8e120c7164d189247ba3e55a
ERROR: Could not build app Failed to find any output apks

Question: What can I do to get the fdroid server to build one or more output apks?

Here is the metadata. yml file that I am using:

$ cat metadata/


AutoUpdateMode: Version %v
UpdateCheckMode: Tags

I have read the F-Droid metadata reference, and have made changes to the .yml file like:

  - debug
  - release

Here’s the last error log:

==== detail begin ====
== Installed Android Tools ==

  • build-tools/30.0.3 (30.0.3)
  • cmdline-tools (3.0)
  • emulator (30.5.4)
  • patcher/v4 (1)
  • platform-tools (31.0.1)
  • platform-tools-2 (31.0.1)
  • tools (26.1.1)
    2021-04-16 14:09:45,242 INFO: Using /home/vagrant/android-sdk/build-tools/29.0.3/apksigner
    2021-04-16 14:09:45,243 INFO: Creating log directory
    2021-04-16 14:09:45,244 INFO: Creating temporary directory
    2021-04-16 14:09:45,244 INFO: Creating output directory
    2021-04-16 14:09:45,455 INFO: Using git version 2.11.0
    2021-04-16 14:09:45,456 INFO: Building version 5.0.942 (141) of
    2021-04-16 14:09:53,715 INFO: Getting source for revision 5506625005fc239c8e120c7164d189247ba3e55a
    2021-04-16 14:09:57,140 INFO: Creating file at build/
    2021-04-16 14:09:57,141 INFO: Updating file at build/
    2021-04-16 14:09:57,169 INFO: Cleaning Gradle project…
    2021-04-16 14:10:59,156 INFO: Scanning source for common problems…
    2021-04-16 14:10:59,321 INFO: Removing gradle-wrapper.jar at gradle/gradle/wrapper/gradle-wrapper.jar
    2021-04-16 14:10:59,324 INFO: Creating source tarball…
    2021-04-16 14:11:33,783 INFO: Building Gradle project…
    2021-04-16 15:08:36,757 INFO: Successfully built version 5.0.942 of from 5506625005fc239c8e120c7164d189247ba3e55a
    2021-04-16 15:08:36,758 ERROR: Could not build app Failed to find any output apks
    ==== detail end ====
    2021-04-16 17:08:44,319 INFO: Finished
    2021-04-16 17:08:44,319 INFO: 1 build failed

When building the app through Android Studio, Android Studio can build APKs and it can build Bundles.

Thank you for any help. I can try different .yml files because the build server is ready here locally.

Teus Benschop


subdir: gradle/app


  - yes

Thank you for the update to the metadata to try.

Here’s the update to the .yml:

subdir: gradle/app
  - yes

Here is the result:

$ fdroid build
2021-04-16 19:23:10,037 CRITICAL: No app metadata found, nothing to process!

I’m not sure what the problem is. It’s not related to the metadata itself. Maybe you run the command in a wrong path.

Thanks for the help.

I ran the command in path :~/fdroiddata/metadata$

I am now going to try to run it in ~/fdroiddata$ and see what that does.

Yes, it works well:

2021-04-16 21:44:11,854 INFO: success:
2021-04-16 21:44:11,855 INFO: Finished
2021-04-16 21:44:11,855 INFO: 1 build succeeded

Thanks man!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.