Android proguard混淆簽名打包出現"android proguard failed to export application"解決方案

來源:互聯網
上載者:User

標籤:android   blog   http   io   ar   for   檔案   sp   2014   

  剛剛接觸安卓,不是很熟悉。發現之前可以正常打包的項目出現添加混淆再進行打包簽名的APK之後提示"android proguard failed to export application"。

                             

  注釋掉程式中的proguard.config=proguard.cfg(在project.properties檔案中),再進行打包發現不混淆就可以正常打包。

  終於找到原因,原來今日升級了SDK到20.3版本,SDK安裝目錄下缺少了混淆的目錄SDK\tools\proguard缺少了相關的工具檔案,下載相應的版本,這裡我下載的是5.0: 點擊這裡下載

  然後解壓相關檔案到SDK\tools\proguard(注意:命名一定要是proguard,否則會不成功),這是重新開啟Eclipse 項目進行混淆重新打包,應該就可以了。

  靈感來自:http://blog.sina.com.cn/s/blog_6e334dc70102uw33.html  (以上方法不成功的可以看看這裡)

Android proguard混淆簽名打包出現"android proguard failed to export application"解決方案

聯繫我們

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