Eclipse ADT 21不包括android应用程序中的依赖项目

时间:2013-03-02 11:28:34

标签: android eclipse adt dependency-management

我有一个Android应用程序依赖于定义为eclipse项目的非特定于Android的纯java lib。我使用Build Path / Projects选项卡将其添加为依赖项,并在Build Path / Order和Export上进行了检查。但是当我尝试运行该项目时,我得到这样的logcat错误:

03-02 11:05:58.615: W/dalvikvm(2292): Link of class 'Lnet/meridiandigital/polltest/MainActivity$5;' failed
03-02 11:05:58.615: E/dalvikvm(2292): Could not find class 'net.meridiandigital.polltest.MainActivity$5', referenced from method net.meridiandigital.polltest.MainActivity.<init>
03-02 11:05:58.615: W/dalvikvm(2292): VFY: unable to resolve new-instance 575 (Lnet/meridiandigital/polltest/MainActivity$5;) in Lnet/meridiandigital/polltest/MainActivity;
03-02 11:05:58.615: W/dalvikvm(2292): VFY: unable to resolve virtual method 3316: Limap/IMAPConnection;.noop ()V
03-02 11:05:58.615: W/dalvikvm(2292): VFY: unable to resolve exception class 471 (Limap/IMAPException;)
03-02 11:05:58.615: W/dalvikvm(2292): VFY: unable to find exception handler at addr 0x26
03-02 11:05:58.615: W/dalvikvm(2292): VFY:  rejected Lnet/meridiandigital/polltest/MainActivity;.alarm ()V
03-02 11:05:58.615: W/dalvikvm(2292): VFY:  rejecting opcode 0x0d at 0x0026
03-02 11:05:58.615: W/dalvikvm(2292): VFY:  rejected Lnet/meridiandigital/polltest/MainActivity;.alarm ()V
03-02 11:05:58.615: W/dalvikvm(2292): Verifier rejected class Lnet/meridiandigital/polltest/MainActivity;
03-02 11:05:58.625: W/dalvikvm(2292): Class init failed in newInstance call (Lnet/meridiandigital/polltest/MainActivity;)

依赖项目包含所有imap/类的定义,$5是此库中定义的接口的实现,因此它肯定是罪魁祸首。

为什么我的项目没有被链接的任何想法?

1 个答案:

答案 0 :(得分:0)

更新到ADT21.1修复了这个问题,所以它可能是21.0中的一个错误。