由于Intellij IDEA已获得付费许可证,因此我目前正在使用eclipse for Java,但是我正在使用Android Studio进行Android开发。 我可以使用Android Studio编写纯JAVA,从而不必学习两个不同的IDE(快捷方式等)吗?
我可以使用Android Studio进行纯JAVA开发吗
Can I use Android studio for pure JAVA development
===============>>#1 票数:0
Yes Just Follow These Steps 1. Open a new Project and choose your Destination path and initial settings: Hit Next on Form Factors (doesn’t matter) > Choose No Activity and Finish 2. In the dropdown view Select Project 3. Remove app Directory and in Settings.gradle delete include ‘:app’ > ignore the Sync Now prompt at the top of the screen in Android Studio 4. Replace build.gradle code with the following > Then click Sync Now prompt apply plugin: 'java' sourceCompatibility = 1.8 version = '1.0' repositories { mavenCentral() } dependencies { testCompile group: 'junit', name: 'junit', version: '4.11' } 5. Configure src and Child Directories main, java, foo and .java Class > Add in main class to construct code and print results public static void main(String[] arg) { String hi = "Hello World"; System.out.println(hi); } 6. Configure Android Studio to run your Java Class properly: Edit Configurations > ‘+’ > Application 7. Get Runin’!
ask by Kostas Konnidis translate from so
===============>>#2 票数:0
简短的答案是:是的。 查看此slackoverflow帖子:
可以使用Android Studio运行标准Java项目吗?
Android Studio IDE基于IntelliJ,但为Android开发添加了一些特定的插件。 因此,您可以像使用IntelliJ for Android开发者一样使用Android Studio for Java开发者。 两者非常相似,但有一些明显的区别。 如果您精通两种方法之一,那么切换到其他方法就不会有任何问题。 现在,我的建议是对Java开发人员使用IntelliJ(免费版),对Android开发人员使用Android Studio。