您的位置:首页 > 移动开发 > Android开发

Android: Could not find method XXX, referenced from method YYY

2012-07-25 09:21 381 查看
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?

Solution:

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

In Eclipse go to Properties -> Java build path -> Order and export.

Mark my jar.

Move jar to top of the list.

The solution was found in the following page which reference to a very good article.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐