简体   繁体   English

将 Android java 应用程序文件导出到设备 .apk

[英]Export Android java application files to device .apk

I have just started using Android Studio to learn app development.我刚刚开始使用 Android Studio 来学习应用程序开发。

I am attempting to run an existing complete android project on github on my android device.我正在尝试在我的 android 设备上的 github 上运行一个现有的完整 android 项目。 The project contains a 'res' and 'src' folder which contains multiple .java files for the application.该项目包含一个“res”和“src”文件夹,其中包含应用程序的多个 .java 文件。 Other files include github relevant files like the .project, .gitignore, readme etc How can I convert these files into a .apk file that can be run on my device?其他文件包括 github 相关文件,如 .project、.gitignore、readme 等。如何将这些文件转换为可以在我的设备上运行的 .apk 文件?

 1) Connect your device to laptop/desktop using usb cable
 2) Enable virtual debugging in your device in developer tools.
 3) Configure your device in AVD[i.e mobile] in android studio.
 4) Once you connect your device and build and click on run in android studio it will create directly apk in your mobile only.

Refer : https://developer.android.com/training/basics/firstapp/running-app.html参考: https : //developer.android.com/training/basics/firstapp/running-app.html

This link will help to configure virtual device.此链接将有助于配置虚拟设备。

Go to your Android Studio and at the top toolbar you will see tab "Build".转到您的 Android Studio,在顶部工具栏中您将看到“构建”选项卡。 Then select "Build apk"然后选择“构建 apk”

Build->Build apk构建->构建apk

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

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