<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dalvik &#8211; 記下來</title>
	<atom:link href="https://noter.tw/tag/dalvik/feed/" rel="self" type="application/rss+xml" />
	<link>https://noter.tw</link>
	<description>一路上踩到的坑、遇到的問題，一點一滴記下來，希望能幫助到需要的人~</description>
	<lastBuildDate>Wed, 06 Nov 2019 07:09:20 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.3</generator>

<image>
	<url>https://noter.tw/wp-content/uploads/cropped-old-1130742_1920-1-32x32.jpg</url>
	<title>dalvik &#8211; 記下來</title>
	<link>https://noter.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Conversion to Dalvik format failed with error 1</title>
		<link>https://noter.tw/1755/conversion-to-dalvik-format-failed-with-error-1/</link>
					<comments>https://noter.tw/1755/conversion-to-dalvik-format-failed-with-error-1/#respond</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Wed, 04 Jan 2012 10:00:50 +0000</pubDate>
				<category><![CDATA[手機 App]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[build path]]></category>
		<category><![CDATA[dalvik]]></category>
		<category><![CDATA[error]]></category>
		<guid isPermaLink="false">http://wazai.net/?p=1755</guid>

					<description><![CDATA[<p>(2015-01-05 更新) 最近小蛙想把照照明星臉的bug都修一修，結果在更新FacebookSDK的時候發生了「Conversion to Dalvik format failed with e&#46;&#46;&#46;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/1755/conversion-to-dalvik-format-failed-with-error-1/" data-wpel-link="internal">Conversion to Dalvik format failed with error 1</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>(2015-01-05 更新) 最近小蛙想把照照明星臉的bug都修一修，結果在更新FacebookSDK的時候發生了「Conversion to Dalvik format failed with error 1」這種搞不清楚發生什麼事情的錯誤，google了一下把解決方法紀錄在這裡。<br />
<span id="more-1755"></span>這次更新似乎沒有以前順利，記得之前直接從Eclipse做import project就可以了，這次要import的時候竟然發生找不到專案的問題，後來小蛙是從New -&gt; Android Project -&gt; Create project from existing source後選取從facebook下載的facebook sdk解壓縮後的目錄，之前舊版本的如此設定就可以了，但這次新版的卻會不斷提示「找不到AndroidManifest.xml」的錯誤。</p>
<p>最後小蛙是直接把facebook sdk裡面的資料整個「搬」到新增的目錄裡面才完成(不知道是小蛙的Eclipse有問題還是怎樣，Create project from existing source後竟然專案裡面是空的&#8230;)，詳細的facebook sdk設定步驟可以參考官方文件<a href="https://developers.facebook.com/docs/mobile/android/build/#sdk" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right">Android Tutorial<span class="wpel-icon wpel-image wpel-icon-6"></span></a>。</p>
<p>這篇要講的只有「Conversion to Dalvik format failed with error 1」錯誤的解決方法(不確定可以適用所有情況，但小蛙的情況是可以解決的)，<a href="http://android.blog.51cto.com/268543/406371" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right">丢失Android系统库或者Conversion to Dalvik format failed with error 1错误的解决<span class="wpel-icon wpel-image wpel-icon-6"></span></a>列出了很多種解決方式，如果小蛙提供的辦法還是無法解決的話，可以參考該文章的教學。</p>
<p>小蛙一開始也是查到Project -&gt; Clean -&gt; Clean all projects的方法，做完之後錯誤消失了，但是當要執行的時候，又會冒出同樣的錯誤。</p>
<p>第二個嘗試的方法是看到有一篇<a href="http://whhnote.blogspot.com/2010/11/android-conversion-to-dalvik-format.html" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right">[Android] Conversion to Dalvik format failed with error 1 解決方法<span class="wpel-icon wpel-image wpel-icon-6"></span></a>中有熱心網友33回應的方法，小蛙照著做過一次之後，竟然&#8230;就可以了^_^留下這篇文章備查。</p>
<p>在發生錯誤的專案上點選滑鼠右鍵 -&gt; Build Path -&gt; Configure Build Path&#8230; -&gt; Order and Export -&gt; 把所有用到的JAR or libraries都打勾，按下OK之後錯誤就再也沒出現了^^希望能對遇到相同問題的網友有幫助！</p>
<p><strong>2015-01-05 補充</strong></p>
<p>小蛙在 include 多個 Android library 專案的時候，發生如果直接指定到例如 ActionbarSherlock 下的 android-support-v4.jar 一樣會出現這個錯誤，最後的解法是在目前要編譯出 apk 的專案 libs 下放一個 android-support-v4.jar (必須要跟其他使用到的同樣版本不然會出錯，而且不能手動 Add Build Path &#8230;)，但是在 Order and Export 處不可以把該 jar 打勾，終於解決這怪問題 &#8230;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/1755/conversion-to-dalvik-format-failed-with-error-1/" data-wpel-link="internal">Conversion to Dalvik format failed with error 1</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/1755/conversion-to-dalvik-format-failed-with-error-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
