我可以开发Android应用没有一个IDE? [英] Can I develop Android apps without an IDE?
问题描述
是否有可能开发Android应用只使用了Android SDK,没有像Android这样工作室任何IDE?
Is it possible to develop Android apps using only the Android SDK, without any IDE like Android Studio?
推荐答案
是的,看到的谷歌在SDK文档。
不过,与目前的工具链和文件这将是一场艰苦的斗争。我想这样做太(对于谁住在Vim并Unix工具一个开发,Android的工作室是不必要的缓慢和臃肿)。
However, with the current toolchain and documentation it'll be an uphill struggle. I'm trying to do this too (for a dev who lives in Vim and Unix tools, Android Studio is needlessly slow and bloated).
到目前为止,我发现的主要问题:
The main issues I've found so far:
-
借助 SDK文档发出指令,创建一个Ant驱动的项目,但SDK现在着眼于使用摇篮。如果通过以线性方式在谷歌文档的工作,你会发现后续的课程中有你发出摇篮编译指令。为了您的Ant构建项目。
The SDK documentation gives instructions to create an Ant-driven project, but the SDK is now geared towards using Gradle. If you're working through the Google documentation in a linear fashion, you'll find subsequent lessons have you issue Gradle build instructions. For your Ant-built project.
有关于如何实际创建命令行一个摇篮建项目很少的文档。我使用的命令行是:
There is very little documentation on how to actually create a Gradle-built project from the command line. The command line I use is:
Android的创建项目--target Android的22 --name MyProjectName --path MY_PROJECT / --activity MyProject的--package com.example.android.myproject --gradle --gradle版1.2 0.2
的 - gradle这个版本
实际上指的是摇篮Android插件版本,而不是摇篮本身的版本。发现这一点是不容易的。
The --gradle-version
actually refers to the Gradle Android plugin version, not the version of Gradle itself. Finding this out wasn't easy.
即使你得到它正确地创建一个项目,它可能不会建立一个没有进一步的操作。其中一个生成的文件(项目/的build.gradle
)具有无效指令名( runProguard
- 我猜它现在是德precated)。这必须改变,以 minifyEnabled
之前,项目将建立。并采用摇篮插件1.2.2,文件项目/ gradle这个/包装/ gradle-wrapper.properties
有错误地列为 gradle-的摇篮分布1.2.2-all.zip
。这应该是 gradle-2.2.1-all.zip
。
Even if you get it to create a project properly, it probably won't build without further manipulation. One of the generated files (project/build.gradle
) has an invalid directive name (runProguard
- I'm guessing it's now deprecated). That must be changed to minifyEnabled
before the project will build. And using the Gradle plugin 1.2.2, the file project/gradle/wrapper/gradle-wrapper.properties
has the Gradle distribution incorrectly listed as gradle-1.2.2-all.zip
. This should be gradle-2.2.1-all.zip
.
这些是有错误的SDK生成的文件。
These are files generated by the SDK with errors.
的文档集中在基于IDE的开发。一旦你过去在创建和使用命令行管理项目的最初几页,这是非常IDE为重点。
The documentation is focussed on IDE-based development. Once you get past the initial few pages on creating and managing a project using the command line, it's very IDE-focussed.
这件事如更改应用主题的说明是很难或不可能效仿,因为他们省略步骤的IDE为您执行。
Instructions on things like changing an app Theme are difficult or impossible to follow as they omit steps that the IDE performs for you.
在一般情况下,完全IDE少发展为Android(至少在Java中,使用官方的SDK)是很痛苦的。而我个人的看法是基于IDE的开发同样是痛苦的(慢,臃肿,丑陋在Linux下高DPI屏幕,显然充满了魔力这是复制的命令行上痛)。
In general, fully IDE-less development for Android (at least in Java, using the official SDK) is very painful. And my personal opinion is that IDE-based development is equally painful (slow, bloated, ugly on high-DPI screens under Linux and evidently full of magic that's a pain to replicate on the command line).
的编辑:我要补充的是,以上是指使用SDK工具v24.2,SDK平台的工具V22,SDK构建工具v22.01和Android API 22(5.1.1)的
这篇关于我可以开发Android应用没有一个IDE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!