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


 
Herramientas
  #1  
Viejo 31/07/14, 15:02:24
Avatar de loadgo
loadgo loadgo no está en línea
Miembro del foro
Mensajes: 37
 
Fecha de registro: oct 2012
Mensajes: 37
Tu operador: Movistar
Mencionado: 0 comentarios
Tagged: 0 hilos
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
Avatar de LEAJIM_454
LEAJIM_454 LEAJIM_454 no está en línea
Miembro del foro
Mensajes: 215
 
Fecha de registro: nov 2012
Mensajes: 215
Modelo de smartphone: Galaxy Ace
Versión de ROM: 2.3.6 Stock
Tu operador: Otra
Mencionado: 1 comentarios
Tagged: 0 hilos
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   HTCMania > Todo sobre Android > Programación y Desarrollo para Android

Herramientas

Reglas de Mensajes
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Las caritas están On
Código [IMG] está On
Código HTML está Off

Saltar a Foro



Hora actual: 14:36:04 (GMT +2)

Cookies settings
Powered by vBulletin™
Copyright © vBulletin Solutions, Inc. All rights reserved.
 
HTCMania: líderes desde el 2007