¿Puedo quitar la biblioteca android-support-v4.jar?
Cuando crea un proyecto, viene con esta biblioteca agregada de forma predeterminada:
android-support-v4.jar
- Cómo utilizar AutoScrollHelper
- ¿Debo usar AppCompat v7 si minsdk es 14
- Abc_ic_ab_back_material recurso no encontrado en la biblioteca de soporte 23.2.1
- Eclipse import google-play-services_lib error de visualización en valores
- Uso de android.support.v4.app o android.app para DialogFragment?
¿Puedo quitarlo? ¿Qué sucede si retiro la biblioteca? ¿Puede la aplicación dejar de funcionar en algunos teléfonos?
- Cómo utilizar o solucionar la búsqueda searchManager.getSearchableInfo () en Android API 7?
- ADVERTENCIA: Se han encontrado android-support-v4 y android-support-v13 en la lista de dependencias
- Obtener referencia al conmutador del cajón en la barra de acción de soporte
- DexIndexOverflowException después de actualizar a la última appcompat y la biblioteca de soporte
- "Campo se puede convertir a una variable local" aparece al configurar el color de la barra de acción
- Utilizar la barra de herramientas como barra de acción no infla el menú
- Agregar la biblioteca de soporte de Android v4 a intellij ide
- Eliminar etiquetas BottomNavigationView
¿Puedo quitarlo?
Puedes probar.
¿Qué sucede si elimino esa biblioteca?
No podrá utilizar nada suministrado por él, como el backport de fragmentos, ViewPager
, etc.
¿Puede la aplicación dejar de funcionar en algunos teléfonos?
Primero obtendrá errores de generación.
Si está usando Eclipse y su proyecto está marcado con un signo de exclamación rojo después de eliminar el tarro android-support-v4, cierre y reinicie Eclipse y debería enderezarlo. (O quizás intente cerrar y volver a abrir el proyecto.)
Puede eliminarlo de forma segura si no utiliza APIs no disponibles para su destino de SDK actual.
Es una biblioteca de soporte. Usted puede leer sobre ello aquí:
-
Configuración de la biblioteca de asistencia
-
Biblioteca de soporte
Puede eliminarlo de forma segura si no utiliza esta API.
Sólo hice eso. Así que tengo varios errores en todos los proyectos, como
...\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'.
Esto significa que los recursos mencionados ya no están disponibles para mis proyectos.
Entonces procedí a agregar v7 appcompat
, y me dieron no podía deshacerse de mis errores. Por lo tanto, lo borré y borré por error el proyecto del disco, así que instalé los restos (supongo) de él, y esto tampoco terminó bien:
[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]
Así que sí, no lo hagas!
- Adición de un botón a una vista personalizada de InfoWindowAdapter que puede registrar clics
- Android ListView en el ejemplo de fragmento