license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This guide shows how to modify Android projects to upgrade from older versions of Cordova. Most of these instructions apply to projects created with an older set of command-line tools that precede the cordova
CLI utility. See The Cordova Command-line Interface for information how to update the version of the CLI.
cordova platform add android
.www
folder to the www
folder at the root of the cordova project you just created.platforms/android
: this directory is where your native cordova-android project exists.www
folder to the new project.res
folder to the new project.src
subdirectories into the new project.<plugin>
references from your old config.xml
file to the new <feature>
specification.bin/update <project_path>
cordova-2.7.0.jar
from the project's libs
directorycordova-2.8.0.jar
to the project's libs
directoryres/xml/config.xml
file to match framework/res/xml/config.xml
framework/res/xml/config.xml
to have similar settings as it did previouslybin/templates/cordova
to the project's cordova
directorycordova-2.6.0.jar
from the project's libs
directorycordova-2.7.0.jar
to the project's libs
directorycordova-2.7.0.js
into your projectcordova-2.7.0.js
fileres/xml/config.xml
to match framework/res/xml/config.xml
framework/res/xml/config.xml
to have similar settings as it did previouslybin/templates/cordova
to the project's cordova
directorycordova-2.5.0.jar
from the project's libs
directorycordova-2.6.0.jar
to the project's libs
directorycordova-2.6.0.js
into your projectcordova-2.6.0.js
fileres/xml/config.xml
to match framework/res/xml/config.xml
framework/res/xml/config.xml
to have similar settings as it did previouslybin/templates/cordova
to the project's cordova
directoryRun bin/update <project>
with the project path listed in the Cordova Source directory.
cordova-2.4.0.jar
from the project's libs
directorycordova-2.5.0.jar
to the project's libs
directorycordova-2.5.0.js
into your projectcordova-2.5.0.js
fileres/xml/config.xml
to match framework/res/xml/config.xml
framework/res/xml/config.xml
to have similar settings as it did previouslybin/templates/cordova
to the project's cordova
directorycordova-2.3.0.jar
from the project's libs
directorycordova-2.4.0.jar
to the project's libs
directorycordova-2.4.0.js
into your projectcordova-2.4.0.js
fileres/xml/config.xml
to match framework/res/xml/config.xml
bin/templates/cordova
to the project's cordova
directorycordova-2.2.0.jar
from the project's libs
directorycordova-2.3.0.jar
to the project's libs
directorycordova-2.3.0.js
into your projectcordova-2.3.0.js
fileres/xml/config.xml
to match framework/res/xml/config.xml
bin/templates/cordova
to the project's cordova
directorycordova-2.1.0.jar
from the project's libs
directorycordova-2.2.0.jar
to the project's libs
directorycordova-2.2.0.js
into your projectcordova-2.2.0.js
fileres/xml/config.xml
to match framework/res/xml/config.xml
bin/templates/cordova
to the project's cordova
directorycordova-2.0.0.jar
from the project's libs
directorycordova-2.1.0.jar
to the project's libs
directorycordova-2.1.0.js
into your projectcordova-2.1.0.js
fileres/xml/config.xml
to match framework/res/xml/config.xml
bin/templates/cordova
to the project's cordova
directorycordova-1.9.0.jar
from the project's libs
directorycordova-2.0.0.jar
to the project's libs
directorycordova-2.0.0.js
into your projectcordova-2.0.0.js
fileres/xml/config.xml
to match framework/res/xml/config.xml
config.xml will be replacing cordova.xml and plugins.xml. This new file is a combination of the previous two. However, the old files are deprecated, and while currently still work, will cease working in a future release.
cordova-1.8.0.jar
from the project's libs
directorycordova-1.9.0.jar
to the project's libs
directorycordova-1.9.0.js
into your projectcordova-1.9.0.js
fileres/xml/plugins.xml
to match framework/res/xml/plugins.xml
cordova-1.8.0.jar
from the project's libs
directorycordova-1.8.1.jar
to the project's libs
directorycordova-1.8.1.js
into your projectcordova-1.8.1.js
fileres/xml/plugins.xml
to match framework/res/xml/plugins.xml
cordova-1.7.0.jar
from the project's libs
directorycordova-1.8.0.jar
to the project's libs
directorycordova-1.8.0.js
into your projectcordova-1.8.0.js
fileres/xml/plugins.xml
to match framework/res/xml/plugins.xml
cordova-1.7.0.jar
from the project's libs
directorycordova-1.8.0.jar
to the project's libs
directorycordova-1.8.0.js
into your projectcordova-1.8.0.js
fileres/xml/plugins.xml
to match framework/res/xml/plugins.xml
cordova-1.6.1.jar
from the project's libs
directorycordova-1.7.0.jar
to the project's libs
directorycordova-1.7.0.js
into your projectres/xml/plugins.xml
to match framework/res/xml/plugins.xml
cordova-1.6.0.jar
from the project's libs
directorycordova-1.6.1.jar
to the project's libs
directorycordova-1.6.1.js
into your projectres/xml/plugins.xml
to match framework/res/xml/plugins.xml
cordova-1.5.0.jar
from the project's libs
directorycordova-1.6.0.jar
to the project's libs
directorycordova-1.6.0.js
into your projectcordova-1.6.0.js
fileres/xml/plugins.xml
to match framework/res/xml/plugins.xml
res/xml/phonegap.xml
with res/xml/cordova.xml
to match framework/res/xml/cordova.xml
phonegap-1.4.0.jar
from the project's libs
directorycordova-1.5.0.jar
to the project's libs
directorycordova-1.5.0.js
into your projectcordova-1.5.0.js
fileres/xml/plugins.xml
to match framework/res/xml/plugins.xml
res/xml/phonegap.xml
with res/xml/cordova.xml
to match framework/res/xml/cordova.xml
phonegap-1.3.0.jar
from the project's libs
directoryphonegap-1.4.0.jar
to the project's libs
directoryphonegap-1.4.0.js
into your projectphonegap-1.4.0.js
fileres/xml/plugins.xml
to match framework/res/xml/plugins.xml
res/xml/phonegap.xml
to match framework/res/xml/phonegap.xml
phonegap-1.2.0.jar
from the project's libs
directoryphonegap-1.3.0.jar
to the project's libs
directoryphonegap-1.3.0.js
into your projectphonegap-1.2.0.js
fileres/xml/plugins.xml
to match framework/res/xml/plugins.xml
res/xml/phonegap.xml
to match framework/res/xml/phonegap.xml
phonegap-1.1.0.jar
from the project's libs
directoryphonegap-1.2.0.jar
to the project's libs
directoryphonegap-1.2.0.js
into your projectphonegap-1.2.0.js
fileres/xml/plugins.xml
to match framework/res/xml/plugins.xml
res/xml/phonegap.xml
to match framework/res/xml/phonegap.xml
phonegap-1.0.0.jar
from the project's libs
directoryphonegap-1.1.0.jar
to the project's libs
directoryphonegap-1.1.0.js
into your projectphonegap-1.1.0.js
fileres/xml/plugins.xml
to match framework/res/xml/plugins.xml
phonegap-0.9.6.jar
from the project's libs
directoryphonegap-1.0.0.jar
to the project's libs
directoryphonegap-1.0.0.js
into your projectphonegap-1.0.0.js
fileres/xml/plugins.xml
to match framework/res/xml/plugins.xml