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.
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.
相关文章推荐
- [已解决问题] Could not find class XXX referenced from method XXX.<YYY>
- Could not find class XXX referenced from method XXX.<YYY>
- Could not find class XXX referenced from method XXX.<YYY>
- 解决Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.su
- android工程导入自己生成的jar包时报:Could not find class referenced from method
- Could not find class 'android.support.v4.view.ViewPager', referenced from method***
- Could not find method XXX, referenced from method
- Could not find class 'android.support.v4.view.ViewPager', referenced from method***
- AChartEnginee Could not find class 'org.achartengine.chart.PointStyle[]', referenced from method xxx
- Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.supp
- E/dalvikvm: Could not find class 'cn.jpush.android.service.PushJobService', referenced from method c
- Could not find method android() for arguments when building Android project from gradle
- Could not find class 'android.support.v4.app.NotificationCompat$BigTextStyle', referenced from metho
- Android E/dalvikvm: Could not find class ****** referenced from 错误
- Could not find class 'com.pinggupad.Tansuo', referenced from method com.ping和java java.lang.NoClassD
- Could not find class '****', referenced from method #####
- Could not find class 'org.ksoap2.serialization.SoapObject', referenced from method cn.edu.bzu.soap.S
- Could not find class 'com.google.gson.Gson', referenced from method com.example.test.json.JsonUtil.S
- Could not find class '****', referenced from method #####