android with ant licensing library dependencies

随声附和 提交于 2019-12-03 14:16:41

little bit older topic but maybe it helps to someone. I had same problem and finally discovered source of troubles

system: win7, last Eclipse and old android tools

created build.xml with

android update project --path .

added library(ies) to default.properties like

android.library.reference.1=..\dir\MyLibrary

but this don't work ... finally I found solution. This works!

android.library.reference.1=..\\dir\\MyLibrary

hope this helps somebody ...

I've not used this library, however I find that for Ant builds which need third party jars it's necessary to create a directory 'libs' below your 'my_project_home' (i.e at the same level as 'src'). Drop the jar in there. The targets in main_rules.xml should then be able to find it.

zmeda check the extras LVM folder I think its missing the default.properties file..at least that is what your error message is telling you..

Hi you need to put a reference to the library project in the build.properties file of your main application. It should look like:

android.library.reference.1=../path-to/library-project

Then as long as that project also has a working ant build.xml it will build and be included in your app.

More details here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!