How to set up Cordova plugin project with IDE support?

后端 未结 5 525
感情败类
感情败类 2020-12-23 16:43

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

5条回答
  •  清歌不尽
    2020-12-23 17:05

    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:

提交回复
热议问题