android同時使用多個library時的問題

來源:互聯網
上載者:User

標籤:android   style   io   ar   color   使用   sp   on   檔案   

劇情是這樣,我的app要使用四個library,如:LibraryA,LibraryB。這兩個庫又都需要support.v4.jar。

由於載入的時間不同,所以四個support.v4.jar不同,出錯的提示如下:

Found 5 versions of android-support-v4.jar in the dependency list, but not all the versions are identical (check is based on SHA-1 only at this time). All versions of the libraries must be the same at this time.Versions found are:

從提示中可以知道,這五個support-v4.jar不同,所以會發生衝突,

解決方案:把所有libs中的support-v4.jar檔案統一,然後重新整理這個包,讓他重建,然後就OK了

android同時使用多個library時的問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.