简体   繁体   English

Android:对compileSdkVersion + targetSdkVersion 23感到困惑

[英]Android: confused about compileSdkVersion + targetSdkVersion 23

I want an app to be available in the play store for android M users to download, but the permissions model isn't yet complete for the app. 我希望在Play商店中可以使用某个应用供Android M用户下载,但该应用的权限模型尚未完成。 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)? 如果我将compileSdkVersion和targetSdkVersion设置为22而不是23-Android M用户会看到该应用程序并能够对其进行dl(在运行时授予所有权限)吗?

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)? 如果我将compileSdkVersion和targetSdkVersion设置为22而不是23-Android M用户会看到该应用程序并能够对其进行dl(在运行时授予所有权限)吗?

Yes, the app will be available to M users and every permission is granted at install time. 是的,该应用程序将对M个用户可用,并且在安装时会授予所有权限。

A small note, if you use the support libraries v23 you need to set the compileSdkVersion to 23 otherwise you get this error: 请注意,如果使用支持库v23,则需要将compileSdkVersion设置为23,否则会出现此错误:

This support library should not use a different version (23) than the compileSdkVersion (22) 该支持库不应使用与compileSdkVersion(22)不同的版本(23)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android compileSdkVersion 23, minSdkVersion 15, targetSdkVersion 23 - Android compileSdkVersion 23, minSdkVersion 15, targetSdkVersion 23 Android targetSdkVersion 23 checkSelfPermission方法 - Android targetSdkVersion 23 checkSelfPermission method 特定设备的targetSDKVersion、minimumSDKVersion和compileSDKVersion - targetSDKVersion, minimumSDKVersion, and compileSDKVersion for specific device 如何在Android Studio中将默认的compileSdkVersion / targetSdkVersion设置为某些API级别 - How do I set default compileSdkVersion / targetSdkVersion to some API level in android studio 对 android 中的 onItemSelected 参数感到困惑 - Confused about onItemSelected parameters in android 对 Android 中的触觉反馈感到困惑 - Confused about haptic feedback in Android 对Android加密的工作方式感到困惑 - Confused about how Android Encryption works 对android项目的结构和MVC模式感到困惑 - Confused about structure of android project and MVC pattern 对发送广播的过程感到困惑——android 初学者 - Confused about the process of sending a broadcast — android beginner 我对如何在Android中正确使用变量有些困惑 - I'm a little confused about how to work with variables correctly in Android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM