Upgrading Version from 4.40 To Any Higher Version Results in Grade Project Sync stuck at Gradle Building Model...
sakibanda opened this issue · comments
Gradle Version
8.4
AGP Version
8.3.2
Code Minifier/Optimizer
Proguard
Version
4.4.0
Sentry SDK Version
7.9.0
Steps to Reproduce
Change Version in build.gradle file from 4.4.0 to any higher version. And click Sync project
Like
id("io.sentry.android.gradle") version "4.4.0"
To
id("io.sentry.android.gradle") version "4.5.1"
Following are settings from build.gradle file:
plugins {
alias(libs.plugins.androidApplication)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.daggerHilt)
alias(libs.plugins.playServices)
//sentry
id("io.sentry.android.gradle") version "4.4.0"
id("com.google.firebase.crashlytics")
id("com.google.devtools.ksp")
id("com.google.firebase.firebase-perf")
//id("io.sentry.kotlin.compiler.gradle") version "4.6.0"
}
sentry {
org = "superstore-43"
projectName = "amazeai"
authToken = System.getenv("SENTRY_AUTH_TOKEN")
debug = true
includeSourceContext = true
includeProguardMapping = true
autoUploadProguardMapping = true
autoUploadNativeSymbols = true
uploadNativeSymbols = true
//additionalSourceDirsForSourceContext
includeNativeSources = true
dexguardEnabled = false
includeDependenciesReport = true
telemetry = true
autoInstallation {
enabled = true
sentryVersion = "7.9.0"
}
tracingInstrumentation {
enabled.set(true)
features.set(EnumSet.allOf(InstrumentationFeature::class.java) - InstrumentationFeature.OKHTTP)
logcat {
enabled = true
minLevel = LogcatLevel.WARNING
}
}
}
Expected Result
Gradle Sync should be successfully completed
Actual Result
Grade Project Sync stuck at
Gradle Building Model...
No progress from here.
hi @sakibanda, do you still face this issue? Could it be that the new gradle plugin version is taking long to download due to a slow internet connection perhaps?
After changing the version code and version names to different values, everything seems to be working fine now.
ok, I'm gonna close the issue, but feel free to comment here or open a new one in case you still face the issue. thank you!