简体   繁体   English

不用Maven在Eclipse中导入.apklib?

[英]Import an .apklib in Eclipse without Maven?

I have recently been playing around with some Android .apklib s with Maven as explained nicely off and on Stackoverflow 我最近一直在玩弄一些Android的.apklib s Maven作为很好地解释 ,并 #1

I am very much satisfied with how it works and I had it running on a previously available Maven project in a matter of minutes 我对它的工作原理非常满意,并在几分钟之内将它运行在一个先前可用的Maven项目中

But I also have projects in which I do not work with Maven , and I'm sure I am not the only one. 但是我也有一些我使用Maven ,并且我确定我不是唯一的一个。 So it is somewhat weird to me that I did not find a single thread where someone asked how this is done 所以对我来说有些奇怪,我没有找到一个人问这个问题是如何完成的线程

How can I import an existing .apklib in an Android project, specifically in eclipse without using Maven? 如何在使用Maven的情况下在Android项目中(尤其是在eclipse中)导入现有的.apklib?

Again, I am not looking to create an apklib or something like that. 同样,我不希望创建 apklib或类似的东西。 I just want to use it inside a standard project. 我只想在标准项目中使用它。 It seems I am a little blind, if I overlooked something during my search please share a link 看来我有点盲目,如果我在搜索过程中忽略了某些内容,请分享一个链接

If you don't want to use apklib package, just create your library project as normal project, then add it as library project to your main project. 如果您不想使用apklib软件包,只需将您的库项目创建为普通项目,然后将其作为库项目添加到主项目即可。

In eclipse, like this 在日食中,像这样 在此处输入图片说明

Or 要么

  1. extract apklib, 提取apklib,
  2. import it as new project, 将其导入为新项目,
  3. add dependence as above 如上所述增加依赖

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

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