[英]How to make android build system embed annotations.jar in an app?
I am building Superuser on Android Open Source Project 4.0.4. 我在Android开源项目4.0.4上构建超级用户 。 I: 一世:
packages/apps
, 在packages/apps
获取了git repo, mm
in packages/apps/Superuser
发行packages/apps/Superuser
mm
and faced following issue: http://pastebin.com/50vGLhH1 并遇到以下问题: http : //pastebin.com/50vGLhH1
I read that I have to embed annotations.jar
in android app's dependencies. 我读到我必须在Android应用程序的依赖项中嵌入annotations.jar
。 There are howto do that with eclipse, but cannot find my answer with aosp source code. 有使用eclipse的方法,但是用aosp源代码找不到我的答案。 Anyone knows? 有谁知道?
不知道这是否行得通,请尝试在Android.mk中添加以下行
LOCAL_STATIC_JAVA_LIBRARIES += annotations
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.