Chitkaran Singh
Chitkaran Singh

Reputation: 1746

How to Compile APK with Folders in Kivy?

need assistance once again. I'm not sure how to put it across as a meaningful question, but I'll give it a shot.

I am trying to compile the APK using buildozer. This is how my folder looks like. enter image description here

When I execute the command buildozer -v android debug, the APK is created but it doesn't run. I suspect that the two folders kivymd and navigationdrawer were not included in the process.

  1. Is there anything that needs to be done in the buildozer.spec file as well ?
  2. Is there something which I'm missing here ?

Please assist !

Upvotes: 0

Views: 858

Answers (2)

user14871678
user14871678

Reputation:

Buildozer includes everything in the local directory and below, if it matches the rules in the buildozer.spec

In particular the file extensions

Hope you get it.

Upvotes: 0

John Anderson
John Anderson

Reputation: 39052

I believe you can include those directories by adding to the source.include_patterns in your .spec file. Something like:

source.include_patterns = images/*.png

That can be comma separated list of patterns. You shouldn't need to list anything that is mentioned in an import statement.

Upvotes: 1

Related Questions