Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

activity_main.xml: Failed to find the style corresponding to the id 2130771996

Tags:

android

I am Having trouble while creating new project in Eclipse Luno. After I update Android Eclipse SDK to API 22 then I am start getting this issue, Layout is not showing properly in Graphic Layout of activity_main. This is Image Link of How its look When I create New Project

to show layout I need to transfer it to into API 20 then it works. Errors are just showing in Error Log not in Problem section. This is Error Log

Any Help Please.

P.S. It is OK when i select API Level 20 then Layout is totally fine and normal no errors.

like image 536
Asad Mehmood Avatar asked Apr 23 '15 12:04

Asad Mehmood


3 Answers

Try changing to lower version as shown in image below and it should work:

enter image description here

like image 153
Prashant Patel Avatar answered Oct 10 '22 10:10

Prashant Patel


I found it i had same problem go to values/styles.xml change theme to Base.Theme.AppCompat.Light.DarkActionBar or anything you want

Before :

<resources>
    <!-- Base application theme. -->
    <style name="AppTheme parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
    </style>
</resources>

After :

<resources>
    <!-- Base application theme. -->
    <style name="AppTheme parent="Base.Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
    </style>
</resources>
like image 24
Hossein Kurd Avatar answered Oct 10 '22 09:10

Hossein Kurd


I did a configure build path including the andriod 5.1.1 library and then did a restart of eclipse and this error got resolved

like image 32
gsm Avatar answered Oct 10 '22 08:10

gsm