eclipse android framework.jar,配置eclipse使用我自己的Android SDK(framework.jar)

要构建SDK,您应该运行以下命令:

make update-api

make sdk

由于Android的API已被修改,命令make update-api添加了新的API.命令make sdk在out文件夹中创建SDK.

然后,要使用新SDK开始在Eclipse中开发应用程序,您应该添加这个新的SDK.有两种可能性.第一个来自“嵌入式Android”一书.我将在这里复制它:

Assuming you had already configured Eclipse for Android development

using the in‐ structions at 07000, you’ll need

to carry out two additional steps to use your newly-built SDK. First,

you’ll need to tell Eclipse the location of the new SDK. To do so, go

to Window→Preferences→Android, enter the path to the new SDK in the

”SDK Location” box, and click OK. Also, for reasons that aren’t

entirely clear to the author at the time of this writing, you also

need to go to Window→“Android SDK Man‐ ager”, deselect all the items

that might be selected except the first two under “Tools” and click on

“Install 2 packages…” Once that is done, you’ll be able to create

new projects using the new SDK and access any new APIs you expose in

it. If you don’t do that second step, you’ll be able to create new

Android projects, but none of them will resolve Java libraries

properly and will, therefore, never build.

至于第二个,它是:

>找到你的新构建sdk zip(对于Linux它可以在这里找到出/主机/ Linux的86 / SDK /)>将此包解压缩到一个文件夹中>在此文件夹中,您可以找到被调用的目录平台/ Android的2.3.3>将文件夹android-2.3.3重命名为< your_name>>将此文件夹复制到以下安装位置你的SDK Manager:android-sdk-linux / platforms>在此文件夹文件build.prop中查找并分配给该属性ro.build.version.sdk任何负数:ro.build.version.sdk = -10>现在运行SDK Manager,您会注意到添加了新的sdk.只需创建新的Eclipse项目并选择此sdk作为目标.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值