2014-11-06 169 views
0

我格式化了我的筆記本電腦,並重新安裝了Eclipse .. 現在,當我導入我的項目時,我有很多錯誤,但是當我創建一個新項目時效果很好,.. 我花了一週在谷歌搜索和嘗試,但沒有..所以我認爲這是最好的地方,這裏有很多聰明的人誰可以幫助我,所以我決定問你... 我該如何reslove這個錯誤?Eclipse項目導入錯誤

這裏是vdieo的鏈接:Click Here to watch video on YouTube

[2014-11-06 22:11:51 - Matematika] Found 2 versions of android-support-v4.jar in the dependency list, 
[2014-11-06 22:11:51 - Matematika] but not all the versions are identical (check is based on SHA-1 only at this time). 
[2014-11-06 22:11:51 - Matematika] All versions of the libraries must be the same at this time. 
[2014-11-06 22:11:51 - Matematika] Versions found are: 
[2014-11-06 22:11:51 - Matematika] Path: D:\tst\appcompat_v7\libs\android-support-v4.jar 
[2014-11-06 22:11:51 - Matematika] Length: 987314 
[2014-11-06 22:11:51 - Matematika] SHA-1: 9b6a9a9078af571732159b904ad423b03b7cc786 
[2014-11-06 22:11:51 - Matematika] Path: D:\tst\Matematika\libs\android-support-v4.jar 
[2014-11-06 22:11:51 - Matematika] Length: 758727 
[2014-11-06 22:11:51 - Matematika] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507 
[2014-11-06 22:11:51 - Matematika] Jar mismatch! Fix your dependencies 
[2014-11-06 22:11:52 - Matematika] Found 2 versions of android-support-v4.jar in the dependency list, 
[2014-11-06 22:11:52 - Matematika] but not all the versions are identical (check is based on SHA-1 only at this time). 
[2014-11-06 22:11:52 - Matematika] All versions of the libraries must be the same at this time. 
[2014-11-06 22:11:52 - Matematika] Versions found are: 
[2014-11-06 22:11:52 - Matematika] Path: D:\tst\appcompat_v7\libs\android-support-v4.jar 
[2014-11-06 22:11:52 - Matematika] Length: 987314 
[2014-11-06 22:11:52 - Matematika] SHA-1: 9b6a9a9078af571732159b904ad423b03b7cc786 
[2014-11-06 22:11:52 - Matematika] Path: D:\tst\Matematika\libs\android-support-v4.jar 
[2014-11-06 22:11:52 - Matematika] Length: 758727 
[2014-11-06 22:11:52 - Matematika] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507 
[2014-11-06 22:11:52 - Matematika] Jar mismatch! Fix your dependencies 
[2014-11-06 22:11:56 - Matematika] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'. 
[2014-11-06 22:11:56 - Matematika] 
[2014-11-06 22:11:56 - Matematika] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'. 
[2014-11-06 22:11:56 - Matematika] 
[2014-11-06 22:11:56 - Matematika] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'. 
[2014-11-06 22:11:56 - Matematika] 
Continues still ...... 

一個其他Procject此錯誤:

2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:37: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:41: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:65: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:69: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:45: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:49: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:53: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:57: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v21\styles_base.xml:61: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'. 
[2014-11-06 22:11:57 - MyActivity] 
[2014-11-06 22:11:57 - MyActivity] D:\tst\appcompat_v7\res\values-v11\styles_base.xml:32: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ProgressBar.Horizontal'. 
[2014-11-06 22:11:57 - MyActivity] 

And imported Appcompat

IDK,我很困惑。我無法找到答案.... 當我關閉並重新打開Eclipse時,我得到了這個:

enter image description here

Errors occurred during the build. 
Error instantiating builder 'com.android.ide.eclipse.adt.PreCompilerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ApkBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ResourceManagerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.PreCompilerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ApkBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ResourceManagerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.PreCompilerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ApkBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ResourceManagerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.PreCompilerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ApkBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ResourceManagerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.PreCompilerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ApkBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ResourceManagerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.PreCompilerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ApkBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ResourceManagerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.PreCompilerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ApkBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ResourceManagerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.PreCompilerBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Error instantiating builder 'com.android.ide.eclipse.adt.ApkBuilder'. 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder. 
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (429). 

回答

0

看起來你缺少的圖書館...嘗試以下操作:

1.檢查.classpath文件在項目文件夾。你可能有一個參考。 OR 2.關閉並重新打開項目而不關閉Eclipse,這可能會重建Eclipse資源緩存。 OR 3.重新將項目導入乾淨的工作區。

+0

1.它在哪裏以及如何?我是新手... :(我是學生,我正在努力學習...... 2.我關閉並重新關閉,但有很多錯誤... 3.我將我的項目導入了很多wokrspaces,但總是相同的,錯誤...我從谷歌下載了一個示例項目有錯誤,嘗試我的項目之前工作格式有錯誤,但我創建了新的項目,偉大的工程... – 2014-11-06 21:46:12

+0

嗯,深入挖掘它我會建議你不要直接找到答案,但是對於指針和過程的解釋,你會以更多的方式學習,我在eclipse(android應用程序)中創建了我的論文,這是一個喧囂。評論我在筆記中發現 – 2014-11-06 21:53:04

+0

我們在學校學不到......我自己訓練......在學校我們學習C#......但我喜歡android編程.. – 2014-11-07 17:11:40