我需要您的帮助,我有一个Android相框应用程序,该应用程序在装有android 5.1.1的手机上运行良好,但是当我尝试从图库中导入照片时,在另一台装有android 7.0版的手机上对其进行了测试到编辑器,它无法正常工作,这使我再次选择框架,在摇篮中,我有targetSdkVersion 27,正如谷歌告诉我们的,targetSdkVersion必须大于26,我在将targetSdkVersion降级到22时进行了测试,这在两款手机中都有效,但是当我将其更改为27时,它只能在5.1.1 android版本的手机中正常工作。请检查一下gradle,并帮助我解决此问题。
buildscript {
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”
android {
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')
}