【发布时间】:2019-09-29 00:44:55
【问题描述】:
我正在 android 工作室开发一个应用程序。我为 google play 或 google play 服务添加了依赖项。我已经安装了带有 API 28 的 Android 虚拟设备 (AVD),并且我有一部带有 API 24 的手机。当我在虚拟设备上运行应用程序时,它运行良好,但是当我在我的 android 手机上运行它时,它没有t run-应用程序甚至没有启动。
我认为 Google Play 目标 API 超过 26 个。 问题是 - 有没有办法在 API 24 或更早版本上运行应用程序?
我已尽力更改 API 级别,但 google 服务给出的错误是它不支持低于 26 的 API。
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.funky.buyit"
minSdkVersion 23
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.google.firebase:firebase-database:17.0.0'
implementation 'com.github.rey5137:material:1.2.5'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
}
完美构建。
【问题讨论】:
标签: android google-play google-play-services android-api-levels