Android項目引用2個以上library project 時的報錯,androidlibrary

來源:互聯網
上載者:User

Android項目引用2個以上library project 時的報錯,androidlibrary

[2012-11-24 11:33:58 - myProject] Found 2 versions of android-support-v4.jar in the dependency list,
[2012-11-24 11:33:58 - myProject] but not all the versions are identical (check is based on SHA-1 only at this time).
[2012-11-24 11:33:58 - myProject] All versions of the libraries must be the same at this time.
[2012-11-24 11:33:58 - myProject] Versions found are:
[2012-11-24 11:33:58 - myProject] Path: E:\adt-bundle-windows-x86-20131030\eclipse\d\workspace\TestAndroidHelper\libs\android-support-v4.jar
[2012-11-24 11:33:58 - myProject]  Length: 627582
[2012-11-24 11:33:58 - myProject]  SHA-1: db0f122c99ef9f90dbab3fada6d191f2880cbb8e
[2012-11-24 11:33:58 - myProject] Path: E:\Project\架構項目\my-dynamicload\myProjectDL\myMobilePay_out\libs\android-support-v4.jar
[2012-11-24 11:33:58 - myProject]  Length: 484258
[2012-11-24 11:33:58 - myProject]  SHA-1: bd6479f5dd592790607e0504e66e0f31c2b4d308
[2012-11-24 11:33:58 - myProject] Jar mismatch! Fix your dependencies

 

錯誤記錄檔:如上;

錯誤現象:主工程libs下的jar包在build path -> Libraries 的Android Private Libraries下全部消失;

錯誤原因:主工程引用的2個library project中,都用到了不同版本的相同jar包,造成主工程這裡發生衝突。

錯誤解決:2個library project的其中1個,在build path -> Libraries 的Order and Export中不匯出上述引發衝突的jar包即可。


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.