Create a new Android project using Eclipse

王林
Release: 2024-01-22 21:42:21
forward
1016 people have browsed it

Create a new Android project using Eclipse

How to use eclipse to create a new android

New android app

1

Before starting development, please ensure that your computer has been correctly configured with a development environment. If the configuration has not been completed, please refer to the following experience: downloading and installing the Android SDK, and configuring environment variables. In addition, you also need to create an AVD (Android Virtual Device). For specific steps, please refer to the detailed tutorial on creating an AVD in Eclipse under ADT (Android Development Tools), which also includes how to deal with some common errors.

2

Open New in the file menu and select new android application. A dialog box will then appear.

3

Please fill in the relevant information in the input box above. Note that the name of the package is usually the inverted version of the domain name. If the writing is irregular, a red cross will be displayed. Once completed, click Next.

4

You can choose to use a local icon by configuring the startup icon, which will be used as a shortcut icon for the application on the mobile phone.

5

If you choose clipart, it will provide many icons to choose from.

6

The next step is to create an "activity". There are 7 to choose from. Select the first blank activity. Represents a blank activity.

7

Generally there is no need to modify the next step, click finish.

8

After completion, it will create a project, including several folders, including source code and required data.

Run and test

1

Right-click the project name, the following one is Firstprj, and then select run as android application. It will launch the emulator. Prompt debugging information.

2

Select yes in the previous step, it will prompt log information.

How to put androidstudio into the eclipse menu

Android development can use Eclipse or Android Studio. Eclipse needs to add the ADT plug-in on the original basis, while Android Studio can directly develop Android.

Tools/Materials

Eclipse、Android Studio

Method/Step

1. To import an Eclipse project into Android Studio, you need to generate the project in Eclipse in advance into a format that Studio can import. Open Eclipse, select a project, right-click, and select Export-->Android-->Generate Gradle build files, as shown in the figure:

2. Select the project to be exported in the displayed interface and click Next, as shown in the figure:

3. Continue Next, and finally click Finish. Remember the path of the exported file at this time, as shown in the figure:

4. At this time, the Eclipse export project has been completed. The next step is to import the project in Android Studio. Open Android Studio and select File-->New-->Import Modle, as shown in the figure:

5. Click the Show button in the displayed interface. Locate the path to the project just exported by Eclipse, as shown in the figure:

6. Select the build.gradle file of the project in Eclipse and click OK, as shown in the figure:

The above is the detailed content of Create a new Android project using Eclipse. For more information, please follow other related articles on the PHP Chinese website!

source:docexcel.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template