Do I need to uses always the last targetSdkVersion?

前端 未结 3 1183
醉梦人生
醉梦人生 2021-01-04 08:16

Simple question: In Eclipse \"New Android project\" command always tries to uses last available sdk. Is it always a good idea?

UPDATE:

I try

相关标签:
3条回答
  • 2021-01-04 08:47

    What could I do very wrong with this choice?

    There is nothing wrong with this choice, which is why the build tools default to it.

    Setting the targetSdkVersion opts you into specific behaviors that you might not get with an older targetSdkVersion. You can see some of what you get by reading the documentation for Build.VERSION_CODES.

    0 讨论(0)
  • 2021-01-04 08:48

    You can read more about it here: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

    But you should almost always have target as the latest and then change minimum to the oldest you want.

    0 讨论(0)
  • 2021-01-04 09:02

    If you want to develop applications for an older version, it is not a good idea. You can always check what the most used version is and make your application against that version. In some cases it is needed to use the latest version because some functionality is not yet implemented in an older version.

    0 讨论(0)
提交回复
热议问题