2014-11-12 15 views
5

Wszystko działało dobrze przed aktualizacją bibliotek sdk i wsparcia. Po aktualizacji właśnie dodałem bibliotekę pomocy technicznej (średnia zaimportowała bibliotekę wsparcia z zasobami). Raz go dodać otrzymuję następujący błądBiblioteka aplikacji Android appcompat_v7 v21.0.1 daje błąd

błąd:

[2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\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-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\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-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\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-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\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-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\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-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v17\styles_rtl.xml:20: error: Error: No resource found that matches the given name: attr 'android:layout_marginStart'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v17\styles_rtl.xml:25: error: Error: No resource found that matches the given name: attr 'android:paddingEnd'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v17\styles_rtl.xml:24: error: Error: No resource found that matches the given name: attr 'android:paddingStart'.  
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\themes_base.xml:26: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\themes_base.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\themes_base.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Dialog'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\themes_base.xml:41: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light.Dialog'. 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] 
    [2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v11\themes_base.xml:338: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'. 

Po zmianie mojego kompilacji cel do 21 z 17 otrzymuję te błędy

[2014-11-12 13:33:15 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-large-v14\themes_base.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.DialogWhenLarge.Base'. 
[2014-11-12 13:33:15 - android-support-v7-appcompat] 
[2014-11-12 13:33:15 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-large-v14\themes_base.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.Light.DialogWhenLarge.Base'. 
[2014-11-12 13:33:15 - android-support-v7-appcompat] 

Próbowałem wiele rzeczy takich jak import projektu ponownie zmieniającego plik project.properties itp., nie jestem w stanie rozwiązać problemu

proszę, pomóżcie z góry z góry.

+0

raz uruchom ponownie zaćmienie !!! – duggu

+0

usunąć ten motyw z folderu values-v14 lub uwzględnić projekt materiału lib –

+0

skąd masz wersję v21.0.1? Ostatnia wersja, jaką widziałem na wolności to 21.0.0 – ligi

Odpowiedz

5

Modyfikowanie pliku project.properties, która posiada:

target=android-19 

do

target=android-21 

po zmianach Powyższe ścisłej projektu wtedy otwarte i czyste

+0

Teraz pamiętam, że zrobiłem to ostatni raz. Dobre przypomnienie. Dzięki. :) – Sufian

0

Chciałbym komentować, ale mam zbyt mało reputacji. Kiedy raz zmieniłem komputer, uruchamiam ten sam problem, więc wyeksportowałem bibliotekę z mojego starego komputera i zaimportowałem ją do nowego afaika. Możesz spróbować, ale nie mogę zagwarantować, że działa również dla ciebie. Możesz użyć mojej wyeksportowanej biblioteki, jeśli chcesz. Chociaż to nie ma większego sensu, z jakiegoś powodu zadziałało dla mnie po tym. https://www.dropbox.com/s/ly9mhmlvthk15f9/Libraries.zip?dl=0

+0

po dodaniu swojej biblioteki dostaję ten błąd Niezgodność Jar! Napraw swoje zależności. – Prashanth

+0

http://stackoverflow.com/questions/16056914/jar-mismatch-fix-your-dependencies –

+0

Mam nadzieję, że możesz śledzić odpowiedzi tamtejszych facetów. To też użyłem. –

Powiązane problemy