Do I have to run the compile command from the proj.android directory? I usually run the compile command from the root of all proj.x (x being the platform) folder. You seem to have run it from the proj.android directory.
I compile the android project with the following command:
$ cocos compile -p android --android-studio
is this different from the one that you have written?
$ cocos compile -pandroid --android-studio