我正在尝试使用 android-maven-plugin 将我的 Android 项目切换为使用 Maven。我的项目有一些依赖项当前设置为 Android 库,但 Eclipse 的 Maven 插件 不支持库项目。我想我应该尝试将这些库重新打包为 JAR(这样 Eclipse 就会选择它们),但我想知道我的 Android 构建会发生什么。
JAR 和 apklib 之间有什么区别?如果我的所有依赖项都是 JAR 而不是 apklib,我是否遗漏了任何会破坏我的 Android 应用程序的内容?
I am attempting to switch my Android project over to use Maven using the android-maven-plugin. My project has a few dependencies that are currently setup as Android Libraries, but the Maven plugin for Eclipse does not support library projects. I thought I would experiment with repackaging these libraries as JARs instead (so that Eclipse will pick them up), but I'm wondering what will happen to my Android build, then.
What's the difference between JARs and apklib? If all of my dependencies are JAR instead of apklib, am I missing anything that would break my Android app?
发布评论
评论(1)
Eclipse 现在支持库项目,并且 android-maven-plugin 可以与库很好地配合。
JAR 和 apklib 之间的区别在于 apklib 可以包含 android 代码和资源。
Eclipse now supports library projects and the android-maven-plugin works fine with libraries.
The difference between JARs and apklib is that apklibs can contain android code and resources.