且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android的图书​​馆项目 - 资源$ NotFoundException

更新时间:2023-11-16 23:23:22

您不能打包资源转化为一个jar文件。建议你做一个库项目,并参阅你的Andr​​oid项目相同。

You cannot package resources into a jar file. Suggest you make a library project and refer the same in your android project.

有关更多信息,请查看下

For more information check the link below

http://developer.android.com/tool​​s/projects/index.html

右键单击该项目,转到物业,选择Android的,选择的是库(打勾)。

Right click on the project, goto properties, choose android, choose Is Library (tick).

Android的图书​​馆项目 - 资源$ NotFoundException

要在YOUT Android项目引用库项目

To refer a library project in yout android project

在你的Andr​​oid项目,转到物业,选择Android的,单击添加,浏览并添加库项目点击右键。点击应用和确定。

Right click on your android project, goto properties, choose android, click add, browse and add the library project. Click apply and ok.

添加actionbaesherlock库项目的快照。请注意绿色的勾。

Snap shot of adding actionbaesherlock library project. Note the green tick.

Android的图书​​馆项目 - 资源$ NotFoundException

清理并生成。

http://developer.android.com/tool​​s/projects/projects- eclipse.html