简体   繁体   English

在另一个android项目中将android库项目用作jar来重用资源

[英]Using android library project as Jar in another android project to reuse the resources

I converted the library project res,gen,src as jar and i use it as referenced library in another project..........but i cant able to access the resources of that jar..........i think iam having issue in gen R.java file.........howw to solve this issue so that i can access those resources of jar(library project) 我将库项目res,gen,src转换为jar,并将其用作另一个项目中的引用库........但是我无法访问该jar的资源。 ...我认为Iam在gen R.java文件中有问题.........如何解决此问题,以便我可以访问jar(库项目)的那些资源

Don't need the option of include it as library project I only need it as jar......so i can reuse it another android projects 不需要将其包含为库项目的选项,我只需要将其作为jar即可……所以我可以将其重用于另一个android项目

any kind of idea will be helpful........thanx in advance 任何想法都会有所帮助........提前感谢

I Posted this topic below link. 我在链接下面发布了此主题。

using jar with res 使用带有res的jar

remember that you have to copy res files to the project you want to use them with jar. 请记住,必须将res文件复制到要与jar一起使用的项目中。

You cannot currently include resources via a jar, you will need to copy and paste them into your current project. 您目前无法通过jar包含资源,您需要将其复制并粘贴到当前项目中。 anddev discussion anddev讨论

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM