How to add external jar libraries to an android project from the command line

后端 未结 9 1620
猫巷女王i
猫巷女王i 2020-11-28 08:23

I\'m trying to build an Android project that has some dependencies. The jar files are in the lib/ directory. I can build the project by adding those jar file to my classpa

9条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 09:13

    The jar.libs.dir property is a single directory. It's not like a CLASSPATH which is a colon/semicolon separated list. The way to have multiple directories in your jar.libs.dir is to not set it directly; let it default to libs and go to libs and create the required soft links to .jar files you need.

提交回复
热议问题