No Gradle build

Hello, can anyone possibly give me some help? =)

I’m trying, for study and relief of anger against Gradle, to make a Python script to build Cocos2d-x projects for Android.

But I’m stuck in which classes must be put on .dex file, and where to get it on cocos package or which Java files to compile to do so.

I tryed to build a .apk on Gradle, extract .dex file and dump it to compare with my .dex file, but are so many classes and my time for this task ended.

Any one can give me some shortcut, clue or document? =)