我需要你的帮助,我有一个安卓相框应用程序,它在安卓 5.1.1 的手机上运行良好,但是当我在另一部安卓 7.0 版的手机上测试它时,我试图将照片从画廊导入到编辑器它不起作用,它让我再次选择一个框架,在gradle中我有targetSdkVersion 27,因为谷歌告诉我们targetSdkVersion必须> 26,当我将targetSdkVersion降级到22时我测试了一些东西,它在两部手机中都可以工作但是当我改变时它到 27 它只能在 5.1.1 android 版本的手机中完美运行。请检查我的 gradle 并帮助我解决这个问题。
构建脚本 {
repositories {
maven { url 'https://plugins.gradle.org/m2/'}
}
dependencies {
classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:
[0.12.1, 0.99.9]'
}
}
应用插件:'com.onesignal.androidsdk.onesignal-gradle-plugin'
存储库{
maven { url 'https://maven.google.com' }
}
应用插件:'com.android.application'
安卓 {
compileSdkVersion 27
buildToolsVersion '28.0.3'
defaultConfig {
manifestPlaceholders = [
onesignal_app_id: '5sdfjk85-df56-3564-df5639-24598ml0f35b',
// Project number pulled from dashboard, local value is ignored.
onesignal_google_project_number: 'REMOTE'
]
applicationId "com.techlabo.gardendflowers.gardenphotoframes"
minSdkVersion 15
targetSdkVersion 27
versionCode 5
versionName "5.3"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
依赖{
implementation 'com.onesignal:OneSignal:[3.10.3, 3.99.99]'
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:27.0.0'
implementation 'com.android.support:design:27.0.0'
implementation 'com.android.support:recyclerview-v7:27.0.0'
implementation 'com.android.support:cardview-v7:27.0.0'
implementation 'com.startapp:inapp-sdk:3.11.1'
implementation files('libs/glide-3.7.0.jar')
}