diff --git a/compatible/android/app/build.gradle b/compatible/android/app/build.gradle index d34aceb8..c06821ab 100644 --- a/compatible/android/app/build.gradle +++ b/compatible/android/app/build.gradle @@ -7,7 +7,7 @@ plugins { android { namespace = "opensource.pikapika" - compileSdk = 31 // flutter.compileSdkVersion + compileSdk = flutter.compileSdkVersion ndkVersion = flutter.ndkVersion compileOptions { diff --git a/compatible/android/build.gradle b/compatible/android/build.gradle index d2ffbffa..1fb013d3 100644 --- a/compatible/android/build.gradle +++ b/compatible/android/build.gradle @@ -11,6 +11,15 @@ subprojects { } subprojects { project.evaluationDependsOn(":app") + afterEvaluate { project -> + if (project.plugins.hasPlugin("com.android.application") || + project.plugins.hasPlugin("com.android.library")) { + project.android { + compileSdkVersion 34 + buildToolsVersion "34.0.0" + } + } + } } tasks.register("clean", Delete) {