[Cordova] cannot compile native Code for plugin copy in Visual Studio project

Source: Internet
Author: User
[Cordova] cannot compile native code problem scenario for plugin copy in Visual Studio project

When developing Cordova plugin, the process of development should be:

  1. Establishment of Cordova Plugin
  2. Publish to a native file system or a git server
  3. Mount plugin using Visual Studio
  4. Compiling and executing the project

In this development process, if you compile and execute this step of the project, you find that plugin's native code needs to be corrected. The intuitive idea is to modify the native code of the plugin copy in the Cordova project directly, then recompile and execute the project to see if the changes are correct. In this case, the modification will not be compiled and executed when the plugin copy of native Code is modified and the project is recompiled. (The same result will be if the project is cleared again)

Solution Solutions

After troubleshooting various operating methods, it is speculated that the cause of the above problems, should be Cordova in order to shorten the compile time, plugin inside the native code only when necessary to compile. This action of modifying plugin copy native code, in the current version (14.0.50925.4), is clearly not defined as the scope that needs to be detected and recompiled.

Once you know the cause of the problem, the solution is simple. Since this action of modifying the plugin copy native code does not trigger recompilation, delete the compiled results of the Cordova: "platforms folder", forcing the Cordova to recompile the project, so that the modified native Code is recompiled by Cordova.

[Cordova] cannot compile native Code for plugin copy in Visual Studio project

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.