gpt4 book ai didi

Android + Eclipse 如何将Enhanced ListView工程导入我的?

转载 作者:行者123 更新时间:2023-11-29 00:25:49 25 4
gpt4 key购买 nike

我是 Android 编程和 Eclipse IDE 的新手。我在将这个 lib/项目(如何调用它?)导入我当前的项目时遇到了一些困难。

GitHub 存储库链接: https://github.com/timroes/EnhancedListView/wiki

作者在那里写了一个“如何包含”,但我尝试了最后一个(我的),因为我使用 Eclipse。

"How to include

You need to include the library into your project, by one of the following ways:

Include it from Maven Central (recommended)

Just enter the following line to your build.gradle file in the dependencies section:

compile 'de.timroes.android:EnhancedListView:X.Z.Y@aar'

Where X.Y.Z is a valid release. You can find all releases on the release page or directly in Maven Central.

If you use Maven to build, just use the above coordinates in your pom.xml.

Download the aar file from the release page and reference it in the dependencies section of your build.gradle:

compile files('libs/EnhancedListView-X.Y.Z.aar')

If you are using Eclipse or Ant, you are on your own. You most likely want to download the sources and import them in your build system."

我试图将它包含到构建路径中,但没有成功。在互联网上找不到任何内容。除了将项目添加到构建路径之外,我是否必须包含其他内容?我是像库还是项目一样导入它?

要包含的任何其他选项对我有用吗?我该怎么做?

非常感谢!

最佳答案

没有针对 Eclipse 用户的一键式方法。您必须将 EnhancedListView.java 复制到您的 src 包之一,将资源目录的内容复制到项目的资源目录中,并将 annotations.jar 从 libs 目录复制到您的 libs 目录。

关于Android + Eclipse 如何将Enhanced ListView工程导入我的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19577055/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com