How to make android build system embed annotations.jar in an app?

别等时光非礼了梦想. 提交于 2019-12-24 10:39:43

问题


I am building Superuser on Android Open Source Project 4.0.4. I:

  1. fetched the git repo in packages/apps,
  2. issued mm in packages/apps/Superuser

and faced following issue: http://pastebin.com/50vGLhH1

I read that I have to embed annotations.jar in android app's dependencies. There are howto do that with eclipse, but cannot find my answer with aosp source code. Anyone knows?


回答1:


Not sure if this will work, do try adding below line in Android.mk

LOCAL_STATIC_JAVA_LIBRARIES += annotations


来源:https://stackoverflow.com/questions/12611043/how-to-make-android-build-system-embed-annotations-jar-in-an-app

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