1

I have just switched from Eclipse to Android Studio but now i am getting problem i am not able ti run my application when i am runing it i am getting the error :

C:\Users\ga\AppData\Local\Android\sdk1\tools\emulator.exe -avd Nexus_5_API_21_x86 -netspeed full -netdelay none
emulator: ERROR: This AVD's configuration is missing a kernel file!!
emulator: ERROR: ANDROID_SDK_ROOT is undefined

Why i am getting this error how can we fix this issue.So that i can run my application . MINSDK

I have done all those changes but i am facing the same issue as well as design part of the xml is not visible to me DESIGN SECTION

So these are the issue i am facing please help me fix this My XML file is :

<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"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    tools:context=".HomePage">

    <TextView
        android:text="@string/hello_world"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

</RelativeLayout>

See for ARM EABI v7a System Image i have already installed that enter image description here

Developer
  • 6,292
  • 19
  • 55
  • 115
  • i have done this still i am getting the same error – Developer May 22 '15 at 10:48
  • 1
    i faced the same issue but i haven't got any solution so i moved again to eclipse – Pooja Dubey May 22 '15 at 10:49
  • Rendering problem is different and AVD configuration error is different. Rendering problem occurs when you are use a precompiled library in your UI xml which is really annoying but not a bug. If you are facing issues with your AVD, you can use GenyMotion which is free for personal use and very fast as compared to inbuilt AVD. – Rohan Kandwal May 22 '15 at 10:57
  • @RohanKandwal i have posted my xml also will suggest what needs to be changed in this – Developer May 22 '15 at 11:01
  • 1
    Your xml is fine, but you need to change your theme or API level, as suggested by @AmritPalSingh below. – Rohan Kandwal May 22 '15 at 11:03
  • the second issue is still @RohanKandwal see in the edit i have posted the image of SDK Manger i have installed that ARM EABI v7a System Image – Developer May 22 '15 at 11:07
  • 1
    @Gaurav Please see this answer and check if it resolves your issue http://stackoverflow.com/a/10101698/1979347. Also, I would recommend you to use GenyMotion which is much better and very fast. – Rohan Kandwal May 22 '15 at 11:17

1 Answers1

2

For design xml part switch your API level from 22 to API 21 (change it from small android icon at the top of your xml file),

OR

Go to res/value/styles.xml and change your AppTheme from

Theme.AppCompat.Light.DarkActionBar to

Base.Theme.AppCompat.Light.DarkActionBar

See Reference Link here for design rendering exception.

For your initial emulator error

C:\Users\ga\AppData\Local\Android\sdk1\tools\emulator.exe -avd Nexus_5_API_21_x86 -netspeed full -netdelay none emulator: ERROR: This AVD's configuration is missing a kernel file!! emulator: ERROR: ANDROID_SDK_ROOT is undefined

Refer this link -

1 - Reference link1

2 - Reference link2

Community
  • 1
  • 1
Amrit Pal Singh
  • 7,116
  • 7
  • 40
  • 50