简体   繁体   English

如何将 java 文件转换为在 Android 上运行的 apk

[英]How to convert java file into apk run on Android

I am beginner in java.我是 java 的初学者。 I want to compile/convert (.java) file into an apk file run on android.我想将(.java)文件编译/转换为在 android 上运行的 apk 文件。 I am using Intellij idea.我正在使用 Intellij 的想法。 And can i convert only.java file without any gui (example:-.xml, .javax, swing).我可以只转换没有任何gui的.java文件吗(例如:-.xml,.javax,swing)。 i have only (.java) file.我只有(.java)文件。 I searched a lot on google but couldn't find it.我在谷歌上搜索了很多,但找不到。 Please help me.请帮我。

You either must include your java file into an android project, or you install some app which let you run java file eg Java N-IDE - Android Builder - Java SE Compiler You either must include your java file into an android project, or you install some app which let you run java file eg Java N-IDE - Android Builder - Java SE Compiler

Well for this we need to download android studio and create a gui for it.为此,我们需要下载 android studio 并为其创建一个 gui。 Then only you can get a apk file..然后只有你可以得到一个apk文件..

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

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