Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Element must be declared error for tag shape

Tags:

android

gradle

I'm using Android Studio I/O(Preview) 0.3.2

I'm using this example to define background gradient in my app. I get Element must be declared error. enter image description here

I've checked and I'm not find any solutions. Can anyone help me how can I declare that tag in the xml

like image 769
Simon Mokhele Avatar asked Dec 26 '13 20:12

Simon Mokhele


Video Answer


1 Answers

This problem was caused by my xml file. My gradient XML file was in the values folder, I solved this problem by moving gradient file to drawable folder

like image 76
Simon Mokhele Avatar answered Oct 30 '22 12:10

Simon Mokhele