gpt4 book ai didi

android - 如何在Android中制作IDE,如AIDE,在Android手机本身编译android项目

转载 作者:行者123 更新时间:2023-12-03 13:27:33 28 4
gpt4 key购买 nike

据我所知,android 中有一个软件(AIDE)可以将 android 项目编译为 android 手机中的 APK。
我的问题是这是如何工作的?是否可以在 android 设备中制作 DEX 文件并将其打包到 APK 中?

最佳答案

是的,您可以使用 AIDE 创建基本级别的 Java/Xml Android 应用程序。

步骤:1 : 先决条件

Install AIDE from Google Play on your Android device (all Android versions from 2.2 are supported) and start it. AIDE comes bundled with a mobile version of the Android SDK, so there is no need to install anything else.



步骤:2 : 创建应用项目

"When you start AIDE for the first time in expert mode you will see the "Create new Project" dialog. If you have already opened a project the dialog will not show, but you can invoke it from AIDE's integrated file browser by choosing "Create new Project here...". In the create app dialog you first choose the type of project you want to create. For your first app choose "Android App / Hello World" here. A dialog will popup where you can define the basic information about your new app: First, choose a name for your app. Second, choose a package name of your app. 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. Finally, tap "Create" to make AIDE generate your new app project. An app project contains all the files that comprise the source code for your Android app. AIDE will generate these files on your SD card. AIDE will also open two important files of your new app for editing: main.xml and MainActivity.java. By default, AIDE will create a Git repository for your new project. This behavior can be turned off in the settings. See the tutorial about Using the Git version control system for more info.



Have a look at Detailed Images while creating appliation

步骤:3 :运行应用程序项目

Running an app project with AIDE is easy. Just select "Run" from the menu. In order to run your app, AIDE will first build an Android application package file (APK) for your app. An APK file is used to distribute and install application software onto the Android operating system. The APK file contains all of your program's code, resources, assets, certificates, and manifest file. You will see a popup showing the progress of the build.



enter image description here

终于可以跑了!

enter image description here

更多细节:
Create a Simple app using AIDE. AIDE tutorial

Develop Android apps from within Android using AIDE (video)

关于android - 如何在Android中制作IDE,如AIDE,在Android手机本身编译android项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39664256/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com