Error trying to export to Android

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By john_lennon1991

When I try to export an APK or AAB in Godot 3.3.3 I get this error message:

Task :copyAndRenameDebugApk FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:copyAndRenameDebugApk’.

Could not list contents of directory ‘/sys/kernel/security/apparmor/policy’.

Could someone help me with this?

:bust_in_silhouette: Reply From: john_lennon1991

I finally managed to solve this problem. First I removed the project from Godot’s splash screen. Then I imported it again and changed the export destination (it seems there was some problem when I tried to overwrite the APK or export the AAB to the same path).