Following up, I've been able to create a signed APK.
I did a few tests and it seems like the ID, Author, website, etc of the C2 project was somehow causing the problem, even though everything was filled. I've modified some of the fields and now it works. :)