简体   繁体   English

Android 开发如何设置

[英]Android Development How to Setup

I have the eclipse setup for Android Development and i need to test the android app using eclipse with old setup.我有用于 Android 开发的 eclipse 设置,我需要使用 Z6B7B655DD22493F106077A 旧设置测试 android 应用程序。 I need to test the app for API level 28. I don't have the SDK platform and system image我需要测试 API 级别 28 的应用程序。我没有 SDK 平台和系统映像

I get the sdk platform and system image here.我在这里得到 sdk 平台和系统映像。 https://androidsdkmanager.azurewebsites.net/AndroidSystemImages https://androidsdkmanager.azurewebsites.net/SDKPlatform https: //androidsdkmanager.azurewebsites.net/AndroidSystemImages https: //androidsdkmanager.azurewebsites.net/SDKPlatform

I put all the file in the SDK folder I try to create new device with API level 28 but i cant create.我将所有文件放在 SDK 文件夹中我尝试使用 API 级别 28 创建新设备,但我无法创建。

I don't know how to install new emulator compatible to the API level 28.我不知道如何安装与 API 28 级兼容的新模拟器。

I don't have experiences in eclipse environment.我在 eclipse 环境中没有经验。

My goal is to test the app using emulator with api28 I try to connect the it using the USB actual devices but it cant recognise by eclipse but the older phone work in the USB so I can test the app.我的目标是使用带有 api28 的模拟器测试应用程序我尝试使用 USB 实际设备连接它,但它无法被 eclipse 识别,但旧手机在 USB 中工作,因此可以测试应用程序。

So my question here how to install manual the emulator with API 28 to test the app and debug it.所以我在这里的问题是如何使用 API 28 手动安装模拟器来测试应用程序并进行调试。 is there step by step how to install new API in SDK to the eclipse and install new emulator是否有一步一步如何在 eclipse 中安装新的 API 到 eclipse 并安装新的模拟器

I try the to make apk file and install in the latest android if I do this I can't get the error of the app so I need the emulator to debug the android app我尝试制作 apk 文件并安装在最新的 android 中

So my Goal here Debug my app in the eclipse with my current setup.所以我的目标在这里使用我当前的设置在 eclipse 中调试我的应用程序。 debug the app with API 28.使用 API 28 调试应用程序。

You'll need to extract those downloaded files into their appropriate directories.您需要将这些下载的文件提取到相应的目录中。 first look for Android SDk install location.首先寻找 Android SDk 安装位置。 in my case its在我的情况下

C:\Users\UserName\AppData\Local\Android\Sdk
<DIR> build-tools //build-tools are extracted here
<DIR> patcher //patcher are extracted here
<DIR> platform-tools //platform-tools are extracted here
<DIR> system-images //system-images are extracted here
<DIR> platforms //platforms  are extracted here
<DIR> sources //sources  are extracted here
<DIR> tools //sdk-tools are extracted here

How to create an AVD in Eclipse如何在 Eclipse 中创建 AVD

Assuming your Android Eclipse work environment is set up properly, creating a new Android Virtual Device (AVD) is simple.假设您的 Android Eclipse 工作环境设置正确,创建一个新的 Android 虚拟设备 (AVD) 很简单。 Just follow these steps.只需按照以下步骤操作。

  1. In Eclipse, click the Window menu, then click Android SDK and AVD Manager.在 Eclipse 中,单击 Window 菜单,然后单击 Android ZF20E3C5E54C0FAB3D375D6606F 管理器。
  2. On the Android SDK and AVD Manager dialog that pops up, you'll see a list of any Android AVDs you have already created:在弹出的 Android SDK 和 AVD 管理器对话框中,您将看到已创建的所有 Android AVD 的列表:

Just click the "New..." button here to start creating a new AVD.只需单击此处的“新建...”按钮即可开始创建新的 AVD。

3) On the "Create new Android Virtual Device" dialog, just choose the options you want for your Android virtual device emulator, as shown here: 3)在“创建新的 Android 虚拟设备”对话框中,只需为 Android 虚拟设备模拟器选择所需的选项,如下所示:

After filling out all the parameters, just click the "Create AVD" button, and your new AVD will be created, and it will appear in the list of Android Virtual Devices in the previous dialog, like this:填写完所有参数后,点击“Create AVD”按钮,你的新AVD就创建好了,它会出现在上一个对话框的Android Virtual Devices列表中,像这样:

You can now use this AVD in your Eclipse/Android development projects.您现在可以在 Eclipse/Android 开发项目中使用此 AVD。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM