I\'ve been struggling to set up my cordova plugin project. Mainly due the facts that:
Plugins need to be in a separate folder away from the main project
There is much simpler solution for Android Studio and Cordova Plugin: After adding android platform, cordova creates an android project under platforms/android and you can create cordova plugin folder under android project and add plugin to project with command once. So, you do not need to use another for Java. As I said, there will be two same java files : /src and /PluginDevelopmentFolder. cordova build android doesn't manipulate any java file. I added fileTree to confirm: