Maxrunner
Maxrunner

Reputation: 1965

Isnt TargetApi annotation part of api level 16(Android 4.1)?

So i update to the last v0.8 and it seems i get errors on the android.annotation.TargetApi import. It seems this belongs to the Api level 16 which isnt out yet. Or is there some package to get this?

regards,

Upvotes: 1

Views: 1378

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007296

First, API Level 16 has been out for not quite two weeks.

Second, @TargetApi has been around for at least a couple of months. Make sure that you are on a fairly current version of the Android developer tools (at least R17), as this is more of a tools issue than a build target issue AFAIK.

Upvotes: 4

Related Questions