用
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.
转载于:https://www.cnblogs.com/epirus/archive/2012/07/25/2607648.html
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/183351.html原文链接:https://javaforall.cn