一个工程引用另外一个工程加载时出现二个reference.appstartup时出错
出错log如下:
W/dalvikvm( 4427): Class resolved by unexpected DEX: Lcom/telenav/app/android/cingular/TeleNav;(0x470ebe60):0x14ad50 ref [Lcom/telenav/tnui/core/android/AndroidActivity;] Lco
W/dalvikvm( 4427): (Lcom/telenav/app/android/cingular/TeleNav; had used a different Lcom/telenav/tnui/core/android/AndroidActivity; during pre-verification)
W/dalvikvm( 4427): Unable to resolve superclass of Lcom/telenav/app/android/cingular/TeleNav; (2420)
W/dalvikvm( 4427): Link of class 'Lcom/telenav/app/android/cingular/TeleNav;' failed
E/dalvikvm( 4427): Could not find class 'com.telenav.app.android.cingular.TeleNav', referenced from method com.telenav.test.app.android.TelenavRegressionTest.<init>
W/dalvikvm( 4427): VFY: unable to resolve const-class 276 (Lcom/telenav/app/android/cingular/TeleNav;) in Lcom/telenav/test/app/android/TelenavRegressionTest;
A has pusu.jar
B->A;
B add pusu.jar
就会出现上面的错误,因为同时出现二份pusu 的引用,去掉B中关于pusu.jar的引用即可。