May 2011 Blog Posts

Android Error parsing XML: unbound prefix [fixed]

21 May 2011 |

I was playing around with my Layout and then I kept getting this error

the fix for this is very simple all you have to do is to make sure that the first element in your layout XML contains this element

xmlns:android=”http://schemas.android.com/apk/res/android

for instance like this

 

   1:  <ScrollView xmlns="http://schemas.android.com/apk/res/android"
   2:           android:layout_width="fill_parent"
   3:           android:layout_height="fill_parent"
   4:           android:padding="10dip">

When Creating a new Android Targets are empty [fixed]

13 May 2011 |

I was setting up my new laptop to create android applications, I have left mylaptop all night to download all images  I have just installed eclipse and the android plugin for eclipse, but when I tried to create a new project

image

 

after a while I remembered that I have to configure the android section in the preferences

so

Window –> preferences –> on the left select the android group and browse to the Android SDK folder wait till the images are loaded.

image

and fixed

Android SDK installation [Java SE development Kit (JDK) not found] fixed

13 May 2011 |

it’s a prerequisite of Android SDK Is JDK so if you are installing the JDK and you know that you have JDK installed, it’s most probably that there’s a missing registry key that was not set

 

error

to solve this problem you need to add a registry key to fix this

so to do that

create a normal text file with this keys

 

Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit] 
"CurrentVersion"="1.6"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit\1.6] 
"JavaHome"="C:\Program Files\Java\jdk1.6.0_25" "MicroVersion"="0"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit\1.6.0_23] 
"JavaHome"="C:\Program Files\Java\jdk1.6.0_25" "MicroVersion"="0"

 

now rename the extension of the file to be “.reg” and then double click to install it, once done try to install it.

 

Update: please make sure that you have the correct path of JDK installed on your machine