Rendering Problem. Couldn't resolve resource

+1 Dilraj Singh · January 11, 2016

I am getting below error message after starting any new project and even sometimes in between while doing something in the activity. Though it doesn't  looks like that it's affecting anything, but still I am worried. Please help.



Post a Reply


Oldest  Newest  Rating
0 Gary Whitney · January 11, 2016
When you create a blank activity, A.S. provides a layout xml file for you.
At the top you will see all the padding.

In you project explorer (on the left) you will find the app\res\values\dimens folder.
This where the values are declared.
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>

You shouldn't have any problems with a fresh Blank Activity.
if you are then try using the refresh icon.
Maybe you changed something in your xml.
0 Dilraj Singh · January 15, 2016
<dimen name="activity_horizontal_margin">16dp</dimen>

<dimen name="activity_vertical_margin">16dp</dimen>

The above parameters are same as you mentioned in dimens folder. Refreshing  removes the error. But every time I start a new project it comes.

Anyways we can set this as resolved here.

Thanks for your help.
  • 1

Java / Android Development


Very popular language used to create desktop applications, website applets, and Android apps.

Bucky Roberts Administrator