Most of the tools in here are invoked by the build tools and not intended for you. However, the following command line tools might be useful:.
Note: You can have multiple versions of the build tools to build your app for different Android versions. These tools are updated for every new version of the Android platform to support new features and sometimes more often to fix or improve the tools , and each update is backward compatible with older platform versions.
Note: Prior to revision Jetifier reads a library that uses Support Library classes, and outputs an equivalent library that uses the newer AndroidX classes. Content and code samples on this page are subject to the licenses described in the Content License. Android Studio. Download What's new User guide Preview.
Meet Android Studio. Manage your project. Write your app. After installing the cordova utility, you can always update it to the latest version by running the following command:. Run the info command for a listing that includes the current version along with other available version numbers:. Go to the directory where you maintain your source code, and run a command such as the following:. The first argument specifies a HelloWorld directory to be generated for your project. Its www subdirectory houses your application's home page, along with various resources under css , js , and img , which follow common web development file-naming conventions.
The config. The other two arguments are optional: the com. You can edit both of these values later in the config. All subsequent commands need to be run within the project's directory, or any subdirectories within its scope:.
Before you can build the project, you need to specify a set of target platforms. Your ability to run these commands depends on whether your machine supports each SDK, and whether you have already installed each SDK. Run any of these from a Mac:. Run any of these from a Windows machine, where wp refers to different versions of the Windows Phone operating system:. Running commands to add or remove platforms affects the contents of the project's platforms directory, where each specified platform appears as a subdirectory.
By default, each platform's configuration file is set up to be able to access all of Cordova's APIs. If you wish, you can use an SDK at this point to open the project you created. After installing and executing the Intel Processor Identification Utility over Windows, you will get the following window, in order to check if your CPU supports the Virtualization Technologies:.
Note : If you have any problems installing the package, you can find more information and step by step guidance check this Intel Article. When starting the emulator, ensure there are no error messages indicating a failure to load HAX modules. At this point, to create a new project you can choose between the cross-platform CLI tool described in The Command-Line Interface , or the set of Android-specific shell tools.
From within a source-code directory, here's the CLI approach:. If you are using the CLI in development, the project directory's top-level www directory contains the source files. Run any of these within the project directory to rebuild the app:. If you are using the Android-specific shell tools in development, there is a different approach. Subsequent commands are available in its cordova subdirectory.
The build command cleans project files and rebuilds the app. Here is the syntax for both Mac and Windows. The first pair of examples generate debugging information, and the second builds the apps for release:.
0コメント