Android : Android Compile Error, cannot find 'corners' attribute

on Friday, July 4, 2014


I cannot figure out why my Android Studio is giving me this error when I am trying to make my FrameLayout have rounded edges. This is the exact error it gives me "Error:(162) No resource identifier found for attribute 'corners' in package 'android'", I have rebuilt my project to see if that was the problem but fortunately it wasn't, can someone explain. I am running version 0.8 Android Studio and my Lowest SDK Version is API 13.


The XML layout file that gives me the error



<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ffffff"/>
<corners android:radius="10dip"/>
<stroke android:color="#000000" android:width="1dp"/>
</shape>

0 comments:

Post a Comment