Commit 25e51219 authored by jyx's avatar jyx

sdk编译版本降低到30

parent 81c9697a
......@@ -4,11 +4,11 @@ plugins {
}
android {
compileSdk 31
compileSdkVersion 30
defaultConfig {
minSdk 21
targetSdk 31
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
......
......@@ -97,11 +97,11 @@ public class UpdateService extends Service {
updateIntent = new Intent(this, MainActivity.class);
updateIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) {
pendingIntent = PendingIntent.getActivity(this, 0, updateIntent, PendingIntent.FLAG_IMMUTABLE);
} else {
// if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) {
// pendingIntent = PendingIntent.getActivity(this, 0, updateIntent, PendingIntent.FLAG_IMMUTABLE);
// } else {
pendingIntent = PendingIntent.getActivity(this, 0, updateIntent, PendingIntent.FLAG_ONE_SHOT);
}
// }
mBuilder.setWhen(System.currentTimeMillis())// 通知产生的时间,会在通知信息里显示
.setContentIntent(pendingIntent)
......
buildscript {
ext.kotlin_version = '1.6.10'
ext.kotlin_version = '1.5.10'
repositories {
google()
......@@ -23,7 +23,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.1'
classpath 'com.android.tools.build:gradle:4.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// sharesdk
classpath "com.mob.sdk:MobSDK:2018.0319.1724"
......@@ -58,8 +58,8 @@ task clean(type: Delete) {
}
ext {
androidCompileSdkVersion = 31
androidBuildToolsVersion = '31.0.0'
androidCompileSdkVersion = 30
androidBuildToolsVersion = '30.0.3'
androidMinSdkVersion = 21
androidTargetSdkVersion = 31
androidTargetSdkVersion = 30
}
\ No newline at end of file
#Tue Sep 06 16:35:22 CST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
......@@ -4,11 +4,11 @@ plugins {
}
android {
compileSdk 31
compileSdkVersion 30
defaultConfig {
minSdk 21
targetSdk 31
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
......
......@@ -4,11 +4,11 @@ plugins {
}
android {
compileSdk 31
compileSdkVersion 30
defaultConfig {
minSdk 21
targetSdk 31
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment