AppCompat v7 r21 devolviendo error en values.xml?
Estoy usando Android Studio y cuando agrego compile "com.android.support:appcompat-v7:21.0.0"
a mi archivo Gradle, estoy recibiendo una tonelada de errores:
C:\Users\WindowsSucks\AndroidStudioProjects\MMMeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v11\values.xml Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. C:\Users\WindowsSucks\AndroidStudioProjects\MMMeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v14\values.xml Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'. C:\Users\WindowsSucks\AndroidStudioProjects\MMMeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v21\values.xml Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'. Error:Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Subtitle'. Error:Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Title'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.ActionBar'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark.ActionBar'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Light'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.DropDownItem.Spinner'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.PopupMenu'. Error:(298, 21) No resource found that matches the given name: attr 'android:overlapAnchor'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListPopupWindow'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView.DropDown'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.PopupMenu'. Error:(298, 21) No resource found that matches the given name: attr 'android:overlapAnchor'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Toolbar.Button.Navigation'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Dialog'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'. Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light.Dialog'. Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'. Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'. Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'. Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'. Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'. Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'. Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'. Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'. Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'. Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'. Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'. Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'. Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'. Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'. Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'. Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'. Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'. Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'. Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'. Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'. Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'. Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'. Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'. Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Todo esto parece estar apareciendo en:
- AppcompatActivity Error con el estudio de Android
- Teñido de MenuItem en la barra de herramientas de AppCompat
- Appcompact DialogFragment de una sola opción marca de verificación color
- Eclipse appcompat-> res-> drawable-xxxhdpi error
- LayoutInflater de la actividad ya tiene instalado un Factory para que no podamos instalar AppCompat
\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v11\values.xml
y
\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v21\values.xml
- No se puede escribir el archivo de caché jarlist mientras se crea el proyecto android
- Animación de la barra de herramientas Android AppCompat-v21
- Appcompat v7 no se introduce en el proyecto
- ¿Cómo usar MediaSessionCompat?
- Diseño de material - Barra de herramientas de AppCompat sin mostrar sombra
- Cómo animar Burger to Arrow con Appcompat v7 21, Toolbar y DrawerLayout
- Android.support.v7.widget.Toolbar icon problema de alineación
- El desprendimiento de diálogo con AppCompat-v7 22 produce sombras feas en api <21
AppCompat v21 crea temas que requieren las nuevas API proporcionadas en API 21 (Android 5.0). Para compilar su aplicación con AppCompat, también debe compilar contra API 21. La configuración recomendada para compilar / construir con API 21 es una compileSdkVersion
de 21
y una buildToolsVersion
de 21.0.1
(que es la más alta en este momento – siempre quiere Utilice las últimas herramientas de compilación).
Asegúrese de que el valor de destino (que indica la versión de destino de Android) en el archivo project.properties de su carpeta de proyecto y carpeta appcompat_v7 es el mismo (preferiblemente el último).
: Dentro de 'your_project' / project.properties
target= android-21 android.library.reference.1=../appcompat_v7
y
: Dentro de appcompat_v7 / project.properties
target= android-21 android.library=true
Y después de esto no se olvide de limpiar su proyecto.
Cambiar la compile 'com.android.support:appcompat-v7:21.0.0'
en la compile 'com.android.support:appcompat-v7:20.0.0'
en gradle.build funciona para mí.
Si está usando android studio goto Archivo -> Estructura del proyecto En la ficha Propiedades cambie la versión de Sdk a AP1 21 y construya la versión de herramientas a la versión disponible más alta. Y luego Actualizar Gradle
Cambiar la versión de SDK de complie al nivel de API 21 lo arregló para mí. Entonces me encontré con otros problemas de implementar la aplicación en mi dispositivo. Cambié el nivel mínimo de la API a la blanco a lo que deseo y que lo fijó.
En caso de que alguien está experimentando esto de nuevo.
Simplemente seleccione el nivel de api de destino a 21 para compilar, haga clic en Aplicar -> haga clic en Aceptar , limpie y cree el proyecto y ejecútelo .
Mi solucion se compila con otra version
Build.gradle (app)
compileSdkVersion 21
Buena suerte
Cambiar su compilación sdk a 23. Esto lo arregló para mí.
Yo voto a quien pueda resolver como yo. Tuve este mismo problema como u, pasé muchas horas para obtener la correcta. Prueba por favor.
Actualizar SDK entero, la actualización 21.0.2 build también tiene actualizaciones de Google Services play. Actualizar todo. En su área de trabajo, borre carpetas (android -support- v7 – AppCompat) y (google -play – services_lib)
Vuelva a importar estos proyectos al IDE y seleccione copiarlos de nuevo en su área de trabajo.
El proyecto (google -play – services_lib) para realizar la acción de Refresh y Build
**** ***** Problema El proyecto (android -support- v7 – AppCompat) marca la API 5.0 y luego Refresh and Build.
En su proyecto, en propiedades, android, importar librerías (android -support- v7 – AppCompat) y (google -play – services_lib), luego Refresh and Build.
Si no desea utilizar la API 21, puede utilizar la versión anterior de la biblioteca appcompact, utilice una biblioteca compacta de aplicación antigua sin actualizarla.
Usted puede lograr esto simplemente siguiendo los pasos:
1) Extraiga la versión descargada del paquete completo de sdk y eclipse.
2) Basta con importar la biblioteca appCompact de sdk\extras\android\support\v7\appcompact
Ahora has terminado.
Citando desde aquí :
Para resolver este problema,
- Haga clic derecho en la biblioteca
appcompat_v7
y seleccione Propiedades- Ahora, haga clic en Android Option,
- Establecer la ruta de construcción del proyecto como Android 5.0 (API nivel 21)
- Aplicar cambios.
- Ahora vaya al archivo
project.properties
en la bibliotecaappcompat_v7
,- Establezca el objetivo del proyecto como:
target=android-21
- Ahora Clean + Build appcompat_v7 biblioteca y sus proyectos
He actualizado el build.gradle (módulo: app): Código antiguo:
compile 'com.android.support:appcompat-v7:23.0.1'
Nuevo código:
compile 'com.android.support:appcompat-v7:22.2.0'
Funciona para mí en el estudio android.
Resource for android
será una opción disponible cuando vaya a su sdk manager
y seleccione Android 5.0
. Descargue e instale eso. Esto solucionará el problema del recurso no encontrado.
Hola yo estaba teniendo el mismo error que involucra la librería appcompatv7
y lo hice como @ianhanniballake sugirió y comprobar la versión de compilación de la biblioteca, seleccionándola y dando un clic con el botón secundario del ratón entonces:
Propiedades -> Android -> Android 5.0.1 api nivel 21
Luego limpiar todos los proyectos, pero no tuve suerte, así que después de perder todas mis esperanzas decidí actualizar de Eclipse Kepler a Eclipse Luna.
Mientras esperaba la descarga para completar. Decidí probar otra cosa, así que fui y borrar de eclipse la librería appcompatv7
y comprobé la
Elimine el contenido del proyecto en el disco.
Se abrió el SDK de Android para comprobar si había actualizaciones, a continuación, he eliminado todas las referencias de la biblioteca de mi proyecto mediante la selección de mi proyecto y bajo
Proyecto -> Propiedades -> Android -> Sección de la biblioteca
Eliminado todas las bibliotecas incluyendo la que inició todo este problema
Google_Play_Services_Lib
Luego reinició Eclipse y se copió de la SDK de Android. La carpeta appcompat de:
Android-sdk-linux / extras / android / support / v7
A mi espacio de trabajo de eclpse, entonces importado agan adentro a Eclipse del proyecto de Exsting de la importación en espacio de trabajo entonces elija la versión de la herramienta de la construcción del propper
Android 5.0.1 api 21
Y agregó todas mis bibliotecas de referencia, limpió todos los proyectos y todo estaba funcionando de nuevo.
Elijo para todas mis bibliotecas de referencia la misma herramienta de construcción.
¡¡¡¡Espero que esto ayude!!!!
Por la forma en que traté de dar una votación, pero no he tenido suficiente representante para hacerlo.
Compruebe la adición de servicios de google play aquí, ya que estaba enfrentando el mismo problema y se quitó todo, a continuación, siguió los pasos y consiguió todo funcionando.
Me encontré con el mismo problema y tenía los valores de nivel API adecuado en mi build.gradle compileSdkVersion 21, targetSdkVersion 21 y buildToolsVersion de 21.0.1
Sin embargo, yo estaba incluyendo esto como un módulo en mi proyecto por lo que tenía que asegurarse de que el otro módulo gradle configuración coincide con la API 21. Después de que todo funcionó para mí.
Cambié
compile 'com.android.support:appcompat-v7:19.1.+'
dentro
compile 'com.android.support:appcompat-v7:22.1.+'
En build.gradle y después de la sincronización no recibí ningún error
En mi caso con Eclipse IDE, tuve el mismo problema y la solución fue:
1- Instalar la última API disponible (plataforma SDK y API de Google)
2- Cree el proyecto con las siguientes configuraciones:
- Compilar con: utilice la última versión de API disponible en ese momento
- Los otros valores pueden recibir valores de acuerdo a sus necesidades (observe el significado de cada uno en comentarios anteriores)
Para mí funciona esto:
android { compileSdkVersion 21 buildToolsVersion '23.0' defaultConfig { applicationId "nl.changer.polypickerdemo" minSdkVersion 15 targetSdkVersion 21 --------- dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.0' }
He modificado: compileSdkVersion 21 buildToolsVersion '23 .0 'appcompat-v7: 22.2.0'
Estaba enfrentando este problema cuando importé el archivo google-services.json para implementar Analytics. Ya tenía el archivo global_tracker.xml en la carpeta xml. Durante la compilación, mientras se fusionaba el contenido del archivo google-services.json, se inició el error. Por el momento, el error se resuelve después de eliminar el archivo goolgle-services.json. Y utilizando la antigua solución de Analytics.
Compruebe el último archivo XML o Json que editó / importó y tal vez registre un error allí. Eso es lo que me ayudó en mi caso.
Esto me ayudó
- Actualizar el SDK de Android a la última versión
-
Actualizar
app/build.gradle
con los componentes más recientes:compileSdkVersion 25 buildToolsVersion "25.0.2" minSdkVersion 17 targetSdkVersion 25
Espero que esto resuelva tu problema
Esto funciona muy bien para mí. Vaya al proyecto android-support-v7-appcompat y abra el archivo "project.properties" e inserte estas líneas si falta:
target=android-25 compile=android-21
- Las bibliotecas no se agregan a APK después de la actualización a ADT 22
- Cómo ver AndroidManifest.xml de archivo APK?