The cross-platform PhoneGap was acquired by Adobe, renamed Cordova, and is now an open source software under Apache. Some of the PhoneGap tutorials available on the Web are not applicable, and there are some issues to be aware of when learning to use the latest version of Cordova:
Website:
http://cordova.apache.org/
1. Use NPM to install the package, install node JS First, and then use NPM to install Cordova.
2.CLI Use the Cordoba command when creating Cordova projects.
3. After the project is created, such as adding an Android platform, the website does not provide a compiled jar for reference as before, but rather provides a project that cordovalib,android project references.
4. Default code generated by the system:
Loadurl (Launchurl);
Errors that are not defined by Launchurl are reported, and should be used:
Loadurl (Config.getstarturl ());
Do not know later will not modify the problem, it is unclear why the official generated code to leave this error, I opened the wrong way?
5. Now the latest version of the CLI 4.3.0, in the selection of the Andorid SDK to choose the high version of the API, or the system generated code some features are not supported, rather than the majority of documents mentioned in the use of 2.1 version can be, some features appear to be after Android 3.0.
6. System-generated Cordova, directly open the compilation report error, have not found the specific reason, may also be a version or other setup issues, did not find the official detailed instructions, what is the situation ah? Go online and get a compiled jar to use first.
Use the new version to toss, toss more than!
Cordova Notes (i)