How to build an android app with external libraries using ant?

前端 未结 4 1789
别跟我提以往
别跟我提以往 2020-12-05 10:56

I have an existing project that builds fine using my IDE. I\'d like to use the \"android update\" command to generate an ant buildfile for this project.

The buildfi

4条回答
  •  粉色の甜心
    2020-12-05 11:29

    I spent some time trying to get the Facebook API to work with ant. The trick for me was to add this to my default.properties files.

    android.library.reference.1=../Facebook
    

    Where ../Facebook contains AndroidManifest.xml, etc. The real key being the relative path. Don't use an absolute path because Ant seems to treat your project directory as the root.

    This should hold true for other library projects that you are including from source code.

提交回复
热议问题