如何让android构建系统在应用程序中嵌入annotations.jar? [英] How to make android build system embed annotations.jar in an app?

查看:20
本文介绍了如何让android构建系统在应用程序中嵌入annotations.jar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Android 开源项目 4.0.4 上构建 Superuser.我:

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

  1. packages/apps 中获取 git repo,
  2. packages/apps/Superuser
  3. 中发布mm
  1. fetched the git repo in packages/apps,
  2. issued mm in packages/apps/Superuser

并面临以下问题:http://pastebin.com/50vGLhH1

我读到我必须将 annotations.jar 嵌入到 android 应用程序的依赖项中.有如何使用 eclipse 做到这一点,但无法使用 aosp 源代码找到我的答案.有人知道吗?

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?

推荐答案

不确定这是否可行,请尝试在 Android.mk 中添加以下行

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

LOCAL_STATIC_JAVA_LIBRARIES += annotations

这篇关于如何让android构建系统在应用程序中嵌入annotations.jar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆