2013-02-01 5 views

risposta

10

Posso rimuoverlo?

Si può provare.

Cosa succede se rimuovo quella libreria?

Non sarà in grado di utilizzare qualsiasi cosa fornita dal sito stesso, come ad esempio i frammenti backport, ViewPager, ecc

L'app potrebbe smettere di funzionare in alcuni telefoni?

Si verificheranno prima gli errori di compilazione.

4

È possibile rimuoverlo senza problemi se non si utilizzano API non disponibili per il target corrente SDK.

4

Se si utilizza Eclipse e il progetto è contrassegnato da un punto esclamativo rosso dopo aver eliminato il vaso android-support-v4, chiudere e riavviare Eclipse e dovrebbe raddrizzarsi. (Oppure potresti provare a chiudere e riaprire il progetto.)

0

L'ho appena fatto. Quindi ho più errori in tutti i progetti, come

...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. 
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. 
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. 
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. 
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. 
...\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. 
...\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. 

Ciò significa che le risorse menzionate non sono più disponibili per i miei progetti.

Quindi ho provveduto ad aggiungere v7 appcompat e non ho potuto eliminare i miei errori. Così ho cancellato, ed erroneamente cancellato il progetto dal disco e, in modo installato i resti (credo) di esso, e questo non è finita bene sia:

[2014-12-07 06:25:16 - android-support-v7-gridlayout] Unable to resolve target 'android-7' 
[2014-12-07 06:25:16 - android-support-v7-mediarouter] Unable to resolve target 'android-17' 
[2014-12-07 06:25:16 - android-support-v7-palette] Unable to resolve target 'android-7' 
[2014-12-07 06:25:17 - android-support-v7-gridlayout] Unable to resolve target 'android-7' 
[2014-12-07 06:25:17 - android-support-v7-palette] Unable to resolve target 'android-7' 
[2014-12-07 06:25:22 - android-support-v7-mediarouter] Unable to resolve target 'android-17' 


...\sdk\extras\android\support\v7\mediarouter\res\values\styles.xml:18: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton'. 
...\sdk\extras\android\support\v7\mediarouter\res\values\styles.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.ActionButton'. 
...\sdk\extras\android\support\v7\mediarouter\res\values\styles.xml:18: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton'. 
...\sdk\extras\android\support\v7\mediarouter\res\values\styles.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.ActionButton'. 
[2014-12-07 06:25:26 - android-support-v7-mediarouter] 

Quindi sì, non farlo IT!