【发布时间】:2018-01-05 13:03:04
【问题描述】:
我想在我的 Android 应用程序中安装时获得权限。出于这个原因,我不得不将targetsdk从27降级到22。目前,我的build.gradle信息如下:
minSDK 17
targetSdkVersion 22
compileSdkVersion 27
buildToolsVersion '27.0.0'
在我的应用程序中,已经使用了这些库:
compile 'com.android.support:appcompat-v7:27.0.1'
compile 'com.android.support:design:27.0.1'
compile 'com.android.support:support-v4:27.0.1'
compile 'com.android.support:recyclerview-v7:27.0.1'
问题是我的Android 8.1(Pixel手机)上没有安装,但在其他手机上安装低Android版本没有问题。
【问题讨论】:
-
如果您正在升级已经在商店中的应用程序,目标>22,那么您不能这样做。如果不是,您在安装期间在 Pixel 上遇到什么错误?
-
it is not installed on my Android 8.1(pixel phone)分享你的崩溃日志 -
"我想在我的 android 应用程序中安装时获得权限。因此,我不得不将 targetsdk 从 27 降级到 22" -- 请记住 you will not be able to ship updates to your app on the Play Store starting later in 2018。
标签: android android-permissions target-sdk android-8.1-oreo