Android,android官網

來源:互聯網
上載者:User

Android,android官網
新浪微博SDK Error: Multiple dex


本文地址:http://blog.csdn.net/caroline_wendy


Error:Android Dex: [WeiboSDKDemo] com.android.dex.DexException: Multiple dex files define Lcom/sina/weibo/sdk/BuildConfig;
參考:http://stackoverflow.com/questions/23236790/multiple-dex-files-define-lcom-amazon-ags-buildconfig-when-using-gamecirclesdk-i/26798722#26798722參考:http://open.weibo.com/qa/index.php?qa=29527&qa_1=%E5%AF%BC%E5%85%A5weibosdk%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF
修改方法:1. 匯入demo-src項目;2. 在WeiboSDK中,建立檔案夾wcl,把src的com.sina.weibo.sdk的內容,移動到其中;顯示為com.sina.weibo.sdk.wcl內的檔案,修改R檔案錯誤,添加wcl目錄;3. 修改AndroidManifest的package:package=“com.sina.weibo.sdk.wcl"4. 修改Project Settings->Facets->WeiboSDKDemo;Packaging標籤->Custom debug keystore,選擇檔案內的debug.keystore即可。5. 設定項目依賴:WeiboSDKDemo依賴WeiboSDK,WeiboSDK依賴libs;android-support-v4刪除即可.
修改之後:git位置:https://github.com/SpikeKing/weibo_android_sdk.git


聯繫我們

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