Android:confused about compileSdkVersion + targetSdkVersion 23
我想要一个应用程序在Play商店中可供Android M用户下载,但该应用程序的权限模型尚未完成。如果我将compileSdkVersion和targetSdkVersion设置为22而不是23 - Android M用户是否会看到该应用程序并能够运行它(在运行时授予所有权限)?Android:confused about compileSdkVersion + targetSdkVersion 23
compileSdkVersion 22
defaultConfig {
minSdkVersion 15
targetSdkVersion 22
}
If I set the compileSdkVersion and targetSdkVersion to 22 instead of 23 - will the android M users see the app and be able to dl it (granting all permissions at runtime)?
是,应用程序将提供给M个用户,每个权限在安装时授予。
小纸条,如果使用支持库V23,你需要设置compileSdkVersion
23否则,你得到这个错误:
This support library should not use a different version (23) than the compileSdkVersion (22)
谢谢 - 如果我理解正确,这对Play商店中的可见性没有影响?无论我在compileSdkVersion和targetSdkVersion中设置了什么,最终用户都会看到该应用程序? – Jon
@Jon:“无论我在compileSdkVersion和targetSdkVersion中设置了什么,最终用户都会看到该应用程序?” - 是的。 'compileSdkVersion'会影响你作为开发者。 'targetSdkVersion'影响应用程序的运行时行为。 'minSdkVersion'阻止较旧的设备。 – CommonsWare
了解这里的差异http://stackoverflow.com/questions/26694108/what-is-the-difference-between-compilesdkversion-and-targetsdkversion –