Programación y Desarrollo para Android Subforo exclusivo para temas de programación de software para PDAs y desarrollo de aplicaciones, interfaces, etc bajo Android

Respuesta
 
Herramientas
  #1  
Viejo 31/07/14, 15:02:24
Array

[xs_avatar]
loadgo loadgo no está en línea
Miembro del foro
 
Fecha de registro: oct 2012
Mensajes: 37
Tu operador: Movistar

Error de previsualizacion

Buenas,

Escribo un codigo en el Layout tan sencillo como este:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MyActivity">


<TextView
android:id="@+id/tvTitulo"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="Mi primera app"
android:textSize="50dp"/>
<TextView
android:id="@+id/tvNombre"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tvTitulo"
android:gravity="center_horizontal"
android:text="Introduce tu nombre"
android:textSize="30dp"/>
<EditText
android:id="@+id/etNombre"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tvTitulo"
android:hint="Introduce tu nombre"
android:textStyle="bold"/>


</RelativeLayout>

Y en la zona de previsualizacion me da el siguiente error:

Rendering Problems Missing styles. Is the correct theme chosen for this layout?

Use the Theme combo box above the layout to choose a different layout, or fix the theme style references. Failed to find style 'textViewStyle' in current theme (12 similar errors not shown)

Y por si sirve de informacion en la parte de abajo lanza el siguiente error:

Waiting for device.
Target device: AVD_for_3_7_WVGA_Nexus_One [emulator-5554]
Uploading file
local path: C:\Users\Loadload\AndroidStudioProjects\MyApplicat ion1\app\build\outputs\apk\app-debug.apk
remote path: /data/local/tmp/com.example.loadload.myapplication1
Installing com.example.loadload.myapplication1
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.loadload.myapplication1"
pkg: /data/local/tmp/com.example.loadload.myapplication1
Can't dispatch DDM chunk 46454154: no handler defined
Can't dispatch DDM chunk 4d505251: no handler defined
Failure [INSTALL_FAILED_OLDER_SDK]

Alguien sabe porque no permite previsualizar un codigo tan sencillo?

Muchas gracias.
Responder Con Cita


  #2  
Viejo 01/08/14, 01:07:39
Array

[xs_avatar]
LEAJIM_454 LEAJIM_454 no está en línea
Miembro del foro
 
Fecha de registro: nov 2012
Mensajes: 215
Modelo de smartphone: Galaxy Ace
Tu operador: Otra
Hola, es muy probable que hayas tocado el archivo styles y lo hayas fastidiado pero como tu mismo dijiste es un codigo muy censillo prueba haciendo otra app pero sin tocar nada mas de lo necesario, saludos...
Responder Con Cita
Respuesta

Estás aquí
Regresar   Portal | Indice > Todo sobre Android > Programación y Desarrollo para Android



Hora actual: 03:11:23 (GMT +2)



User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.

Contactar por correo / Contact by mail / 邮件联系 /