翻译1

Get the Android SDK

The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android.

If you're a new Android developer, we recommend you download the ADT Bundle to quickly start developing apps. It includes the essential Android SDK components and a version of the Eclipse IDE with built-in ADT (Android Developer Tools) to streamline your Android app development.

With a single download, the ADT Bundle includes everything you need to begin developing apps:

    Eclipse + ADT plugin
    Android SDK Tools
    Android Platform-tools
    The latest Android platform
    The latest Android system image for the emulator

Download the SDK
ADT Bundle for Windows
Android Studio Early Access Preview

A new Android development environment called Android Studio, based on IntelliJ IDEA, is now available as an early access preview. For more information, see Getting Started with Android Studio.

If you prefer to use an existing version of Eclipse or another IDE, you can instead take a more customized approach to installing the Android SDK. See the following instructions:
USE AN EXISTING IDE
SYSTEM REQUIREMENTS
DOWNLOAD FOR OTHER PLATFORMS

 

获取安卓开发工具包
   
Android SDK提供了你所需的API库和开发工具构建、测试和调试Android应用程序。
    如果你是一个新的Android开发者,我们建议您下载ADT包快速开始开发应用程序。
它包括必要的Android SDK组件和一个版本的Eclipse IDE内置ADT(Android开发者工具)来简化你的Android应用程序开发。
    用一个下载,ADT包包括所有你需要开始开发应用程序:
    Eclipse + ADT插件
      Android SDK工具
      Android Platform-tools
      最新的Android平台
      最新的Android模拟器的系统映像
  下载SDK
   ADT包为Windows
   Android工作室早期访问预览
    一个名为Android的新Android开发环境,基于IntelliJ IDEA,现在可以作为早期访问预览。
有关更多信息,请参见开始使用Android工作室。
    如果你喜欢使用现有版本的Eclipse或另一个IDE,您可以采取更加定制方法安装Android SDK。
见下面的说明:
   使用现有的IDE
   系统需求
     下载其他平台

 

 

 

 

 


Create a Project with Eclipse

    Click New in the toolbar.
    In the window that appears, open the Android folder, select Android Application Project, and click Next.

    Fill in the form that appears:
        Application Name is the app name that appears to users. For this project, use "My First App."

        Project Name is the name of your project directory and the name visible in Eclipse.
        Package Name is the package namespace for your app (following the same rules as packages in the Java programming language). Your package name must be unique across all packages installed on the Android system. For this reason, it's generally best if you use a name that begins with the reverse domain name of your organization or publisher entity. For this project, you can use something like "com.example.myfirstapp." However, you cannot publish your app on Google Play using the "com.example" namespace.
        Minimum Required SDK is the lowest version of Android that your app supports, indicated using the API level. To support as many devices as possible, you should set this to the lowest version available that allows your app to provide its core feature set. If any feature of your app is possible only on newer versions of Android and it's not critical to the app's core feature set, you can enable the feature only when running on the versions that support it (as discussed in Supporting Different Platform Versions). Leave this set to the default value for this project.
        Target SDK indicates the highest version of Android (also using the API level) with which you have tested with your application.

        As new versions of Android become available, you should test your app on the new version and update this value to match the latest API level in order to take advantage of new platform features.
        Compile With is the platform version against which you will compile your app. By default, this is set to the latest version of Android available in your SDK. (It should be Android 4.1 or greater; if you don't have such a version available, you must install one using the SDK Manager). You can still build your app to support older versions, but setting the build target to the latest version allows you to enable new features and optimize your app for a great user experience on the latest devices.
        Theme specifies the Android UI style to apply for your app. You can leave this alone.

    Click Next.
    On the next screen to configure the project, leave the default selections and click Next.
    The next screen can help you create a launcher icon for your app.

    You can customize an icon in several ways and the tool generates an icon for all screen densities. Before you publish your app, you should be sure your icon meets the specifications defined in the Iconography design guide.

    Click Next.
    Now you can select an activity template from which to begin building your app.

    For this project, select BlankActivity and click Next.
    Leave all the details for the activity in their default state and click Finish.

Your Android project is now a basic "Hello World" app that contains some default files. To run the app, continue to the next lesson.
创建一个Eclipse项目
    单击工具栏中的新。
  在出现的窗口中,开放的安卓文件夹,选择Android应用程序的项目,然后单击Next。
    填写形式出现:
   应用程序名称是应用程序名称显示给用户。对于这个项目,使用“我的第一个程序。”
  项目名称是您的项目目录的名字,这个名字在Eclipse中可见。  包名是你的应用程序的包名称空间(遵循同样的规则包在Java编程语言)。你的包名称必须是惟一的所有包安装在Android系统。出于这个原因,一般最好的如果你使用一个名称,开始与您的组织的反向域名或出版商实体。对于这个项目,您可以使用类似于“com.example.myfirstapp。“不过,你不能在谷歌发布你的应用程序会使用“com。例子”名称空间。
  最低要求SDK的最低版本的Android应用程序支持,表明使用该API级别。支持尽可能多的设备,您应该将其设置的最低版本,允许你的应用程序提供其核心功能。如果你的应用程序的任何特性是可能只在新版本的Android和它不是关键应用程序的核心功能,您可以启用该功能只有在版本上运行,支持支持不同的平台版本(如前所述)。离开这个设置为这个项目的默认值。  目标SDK表明最高版本的Android使用API级别(也)在测试您的应用程序。
    随着新版本的Android可用时,你应该在新版本上测试你的应用程序和更新这个值以匹配最新的API级别,以利用新的平台特性。
  编译的平台你会编译你的应用程序的版本。默认情况下,这是设置为可用的最新版本的Android SDK。(应该是Android 4.1或更高版本,如果你没有这样一个可用的版本,您必须安装一个使用SDK管理器)。你仍然可以构建应用程序来支持旧版本,但设置构建目标到最新版本允许您启用新特性和优化你的应用程序的用户体验最新的设备。
  指定Android UI主题风格申请应用程序,你可以离开这孤独。
  单击Next。  在下一个屏幕上配置项目,保留默认选项并单击next。
  在下一个屏幕上可以帮助你为你的应用创建一个启动器图标。
    你可以定制一个图标在几个方面,对所有屏幕密度工具生成一个图标。
在你发布你的应用程序之前,你应该确保你的图标符合规范中定义的图解设计指南。
    单击Next。
  现在,您可以选择一个活动开始构建应用程序的模板。
    对于这个项目,选择BlankActivity并单击Next。
  离开默认状态的活动的所有细节并单击Finish。
    你的Android项目现在是一个基本的“Hello World”应用程序,其中包含一些默认的文件。要运行应

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值