I am trying to import this material-dialog library.
Getting this error: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light.Dialog.Alert'.
Getting it in file: values-v21/styles.xml.
I am using Eclipse and I have imported android-support-v4.jar in libs folder. What could be the issue here?
In your project properties, make sure that you have selected API level 21 as your platform. Also, in your manifest file, make
targetSdkVersion as 21. Then clean & rebuild your project, and it should work.
Whenever you use the new
Material Design features or the newest version of the support library, the project needs to be compiled against API level 21.