Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find method XXX, referenced from method YYY

Tags:

android

I have two android projects, ProjA requires ProjB (in Eclipse Properties > Java Build Path > Projects > Add > ProjB). Every thing compiles ok in Eclipse, but when I run ProjA I get an error:

Could not find method XXX, referenced from method YYY.

Where XXX - is the method from ProjB.

How can I fix the settings?

like image 535
alex2k8 Avatar asked Feb 27 '10 22:02

alex2k8


2 Answers

I have a similar problem when using external jar (in my case openCSV). The reason I had a problem was due to a change in ADT 17 (or above). What I needed to do to resolve the problem was

  1. In Eclipse go to Properties -> Java build path -> Order and export.
  2. Mark my jar.
  3. Move jar to top of the list.

The solution was found in the following page which reference to a very good article.

like image 144
Ika Avatar answered Oct 29 '22 13:10

Ika


Importing Class from External Jar, Android you can try the above link.. I suggest taking care of this "android only support 1.6 and not 1.7" in your library jar

like image 3
Satish Avatar answered Oct 29 '22 13:10

Satish