我还可以使用eclipse进行Android项目吗?

时间:2022-01-18 10:53:49

I prefer eclipse over android studio, my question is if I can still use it to build projects for future development - for example the recycleview library. It is supported in eclipse too, but will future google libraries continue to support it?

我更喜欢eclipse而不是android studio,我的问题是我是否仍然可以使用它来构建未来开发的项目 - 例如recycleview库。 eclipse也支持它,但未来谷歌图书馆会继续支持吗?

My second question is, if I'm using eclipse to make an app, will it be run on new devices too, as the project structure is different in eclipse and android studio.

我的第二个问题是,如果我使用eclipse制作应用程序,它也会在新设备上运行,因为eclipse和android studio中的项目结构不同。

My final question is how can I use libraries from android arsenal if I don't use android studio (all the libraries there are for maven and gradle)?

我的最后一个问题是,如果我不使用android工作室(所有库都有maven和gradle),我如何使用android库中的库?

1 个解决方案

#1


I prefer eclipse over android studio, my question is if I can still use it to build projects for future development - for example the recycleview library. It is supported in eclipse too, but will future google libraries continue to support it?

我更喜欢eclipse而不是android studio,我的问题是我是否仍然可以使用它来构建未来开发的项目 - 例如recycleview库。 eclipse也支持它,但未来谷歌图书馆会继续支持吗?

In the end, it is all just Java, XML, and other such resources. The RecyclerView library is no exception- it is just a library that can be used in any IDE.

最后,它只是Java,XML和其他此类资源。 RecyclerView库也不例外 - 它只是一个可以在任何IDE中使用的库。

The IDE you use for development is just a tool to view and edit these project files. Separately, you use a build system to build the application. Your IDE, the build system, and the project files are completely separate and one doesn't depend on the other to create a functioning application. In fact, you can build an Android application without an IDE at all.

用于开发的IDE只是查看和编辑这些项目文件的工具。另外,您使用构建系统来构建应用程序。您的IDE,构建系统和项目文件是完全独立的,并且不依赖于另一个来创建正常运行的应用程序。实际上,您可以构建一个没有IDE的Android应用程序。

The biggest issue you might run into here is the format of libraries such as RecyclerView. In the Eclipse days (note that Eclipse Android projects typically use Ant for building), most libraries came as either JAR files or Android libraries (of source code). With the release of Android Studio and the Android Gradle plugin, everything is shifting towards Gradle dependencies.

您可能遇到的最大问题是诸如RecyclerView之类的库的格式。在Eclipse时代(注意Eclipse Android项目通常使用Ant进行构建),大多数库都是JAR文件或Android库(源代码)。随着Android Studio和Android Gradle插件的发布,一切都转向Gradle依赖。

Also be aware that Google is not going to continue supporting Eclipse development. The tools for building Android application in Eclipse will not continue to receive updates, so bugs may pop up in the future that prevent you from continuing to use it effectively.

另请注意,Google不会继续支持Eclipse开发。在Eclipse中构建Android应用程序的工具将不会继续接收更新,因此将来可能会出现阻止您继续有效使用它的错误。

My second question is, if I'm using eclipse to make an app, will it be run on new devices too, as the project structure is different in eclipse and android studio.

我的第二个问题是,如果我使用eclipse制作应用程序,它也会在新设备上运行,因为eclipse和android studio中的项目结构不同。

The output of building an Android application is the same regardless of how or where you build it - you get an APK with the same file structure. The structure of the built APK is independent of the structure of the source code.

构建Android应用程序的输出是相同的,无论您如何或在何处构建它 - 您获得具有相同文件结构的APK。构建的APK的结构独立于源代码的结构。

My final question is how can I use libraries from android arsenal if I don't use android studio (all the libraries there are for maven and gradle)?

我的最后一个问题是,如果我不使用android工作室(所有库都有maven和gradle),我如何使用android库中的库?

Eclipse can use both Gradle and Maven for building. If you want to use libraries as Gradle or Maven dependencies, you will need to set up your project to use either Maven or Gradle to build instead of Ant. Otherwise you can still find JARs for most projects that don't rely on the Android framework, or you will need to get the source code for the library and set it up as a project dependency yourself.

Eclipse可以使用Gradle和Maven进行构建。如果要将库用作Gradle或Maven依赖项,则需要将项目设置为使用Maven或Gradle来构建而不是Ant。否则,您仍然可以为大多数不依赖于Android框架的项目找到JAR,或者您需要获取库的源代码并自己将其设置为项目依赖项。

#1


I prefer eclipse over android studio, my question is if I can still use it to build projects for future development - for example the recycleview library. It is supported in eclipse too, but will future google libraries continue to support it?

我更喜欢eclipse而不是android studio,我的问题是我是否仍然可以使用它来构建未来开发的项目 - 例如recycleview库。 eclipse也支持它,但未来谷歌图书馆会继续支持吗?

In the end, it is all just Java, XML, and other such resources. The RecyclerView library is no exception- it is just a library that can be used in any IDE.

最后,它只是Java,XML和其他此类资源。 RecyclerView库也不例外 - 它只是一个可以在任何IDE中使用的库。

The IDE you use for development is just a tool to view and edit these project files. Separately, you use a build system to build the application. Your IDE, the build system, and the project files are completely separate and one doesn't depend on the other to create a functioning application. In fact, you can build an Android application without an IDE at all.

用于开发的IDE只是查看和编辑这些项目文件的工具。另外,您使用构建系统来构建应用程序。您的IDE,构建系统和项目文件是完全独立的,并且不依赖于另一个来创建正常运行的应用程序。实际上,您可以构建一个没有IDE的Android应用程序。

The biggest issue you might run into here is the format of libraries such as RecyclerView. In the Eclipse days (note that Eclipse Android projects typically use Ant for building), most libraries came as either JAR files or Android libraries (of source code). With the release of Android Studio and the Android Gradle plugin, everything is shifting towards Gradle dependencies.

您可能遇到的最大问题是诸如RecyclerView之类的库的格式。在Eclipse时代(注意Eclipse Android项目通常使用Ant进行构建),大多数库都是JAR文件或Android库(源代码)。随着Android Studio和Android Gradle插件的发布,一切都转向Gradle依赖。

Also be aware that Google is not going to continue supporting Eclipse development. The tools for building Android application in Eclipse will not continue to receive updates, so bugs may pop up in the future that prevent you from continuing to use it effectively.

另请注意,Google不会继续支持Eclipse开发。在Eclipse中构建Android应用程序的工具将不会继续接收更新,因此将来可能会出现阻止您继续有效使用它的错误。

My second question is, if I'm using eclipse to make an app, will it be run on new devices too, as the project structure is different in eclipse and android studio.

我的第二个问题是,如果我使用eclipse制作应用程序,它也会在新设备上运行,因为eclipse和android studio中的项目结构不同。

The output of building an Android application is the same regardless of how or where you build it - you get an APK with the same file structure. The structure of the built APK is independent of the structure of the source code.

构建Android应用程序的输出是相同的,无论您如何或在何处构建它 - 您获得具有相同文件结构的APK。构建的APK的结构独立于源代码的结构。

My final question is how can I use libraries from android arsenal if I don't use android studio (all the libraries there are for maven and gradle)?

我的最后一个问题是,如果我不使用android工作室(所有库都有maven和gradle),我如何使用android库中的库?

Eclipse can use both Gradle and Maven for building. If you want to use libraries as Gradle or Maven dependencies, you will need to set up your project to use either Maven or Gradle to build instead of Ant. Otherwise you can still find JARs for most projects that don't rely on the Android framework, or you will need to get the source code for the library and set it up as a project dependency yourself.

Eclipse可以使用Gradle和Maven进行构建。如果要将库用作Gradle或Maven依赖项,则需要将项目设置为使用Maven或Gradle来构建而不是Ant。否则,您仍然可以为大多数不依赖于Android框架的项目找到JAR,或者您需要获取库的源代码并自己将其设置为项目依赖项。