0

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)

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

any kind of idea will be helpful........thanx in advance

rajNaveen
  • 145
  • 7

2 Answers2

1

I Posted this topic below link.

using jar with res

remember that you have to copy res files to the project you want to use them with jar.

Community
  • 1
  • 1
J.J. Kim
  • 1,845
  • 1
  • 16
  • 21
  • thanx for the idea it means that we have to copy each and every resources of our jar/library project into our android project – rajNaveen Aug 22 '11 at 06:10
  • I get an error message when I do this saying `java.lang.NoClassDefFoundError: com.devspark.appmsg.R$color`. Any ideas? – Joshua Pinter Mar 05 '14 at 20:39
0

You cannot currently include resources via a jar, you will need to copy and paste them into your current project. anddev discussion

stealthcopter
  • 13,964
  • 13
  • 65
  • 83