I\'ve always programmed Android with Eclipse and decided to start migrating to Android Studio. I decided to use the same SDK I already had for Eclipse, then:
I agree with the previous answer. Your compile SDK version must match the support library. Here is what I did.
Then it should build without problem.