loadgo
31/07/14, 15:02:24
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.
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.