3

I am getting below error while importing the eclipse code to Android studio. I am not getting why this is happening I have already tried for possible solutions by checking XMLNS and other custom tags.

This is file where it navigates for error - this is auto-generated file

This is error I'm getting

4
  • remove <eat-comment> Commented Oct 6, 2015 at 4:52
  • @MD This is auto-generated file,I can not make any edit in this file Commented Oct 6, 2015 at 4:53
  • did you try stackoverflow.com/questions/19526945/… and stackoverflow.com/questions/29221236/… ? Commented Oct 6, 2015 at 4:59
  • @RajeshJadav yes I gone through it but there is no such things in my project display in that 2 questions Commented Oct 6, 2015 at 5:01

1 Answer 1

2

Remove all xmlns:android="http://schemas.android.com/apk/res/android" in your main\res\values\style.xml file from style tag. Here is is the sample code:

<resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="AppBaseTheme" parent="android:Theme.Light"> </style> <style name="AppTheme" parent="AppBaseTheme"> </style> <style xmlns:android="http://schemas.android.com/apk/res/android" name="RadioButton" parent="@android:style/Widget.CompoundButton"> <item name="android:button">@null</item> <item name="android:padding">5dp</item> </style> <style xmlns:android="http://schemas.android.com/apk/res/android" name="EditText" parent="@android:style/Widget.EditText"> <item name="android:textSize">15sp</item> </style> </resources> 

It should be like this:

<resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="AppBaseTheme" parent="android:Theme.Light"> </style> <style name="AppTheme" parent="AppBaseTheme"> </style> <style name="RadioButton" parent="@android:style/Widget.CompoundButton"> <item name="android:button">@null</item> <item name="android:padding">5dp</item> </style> <style name="EditText" parent="@android:style/Widget.EditText"> <item name="android:textSize">15sp</item> </style> </resources> 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.