【Android 4.0】conversion to dalvik format failed with error 1

來源:互聯網
上載者:User


升級SDK Tool r14 和 ADT 15後,在匯出簽名apk時遇到了這樣的問題: conversion to dalvik format failed with error 1。 

(主要原因應該是SDK升級的原因, 單單升級ADT沒有遇到問題)



Refresh、Clean都試過了,還是不行。

最終的解決辦法是,去除了project.properties檔案(原default.properties)中的proguard配置。

# This file is automatically generated by Android Tools.# Do not modify this file -- YOUR CHANGES WILL BE ERASED!## This file must be checked in Version Control Systems.## To customize properties used by the Ant build system use,# "ant.properties", and override values to adapt the script to your# project structure.# Project target.target=android-7#刪除下面這行就ok了#proguard.config=proguard.cfg 

上面這種解決方式不太靠譜,畢竟大家還是要混淆代碼的,所以說一下另一個解決辦法,那就是升級Proguard。
目前最新的proguard是4.7版,我這邊升級到Proguard4.6就OK了。

從proguard官網下載4.6的,覆蓋到tools/proguad/bin、lib這兩個檔案夾就OK了.我這邊是這樣解決的。
: http://sourceforge.net/projects/proguard/files/proguard/4.6/

相關文章

聯繫我們

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