Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading Version from 4.40 To Any Higher Version Results in Grade Project Sync stuck at Gradle Building Model... #711

Closed
sakibanda opened this issue May 17, 2024 · 3 comments
Labels
bug Something isn't working Platform: Android

Comments

@sakibanda
Copy link

sakibanda commented May 17, 2024

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.

@romtsn
Copy link
Member

romtsn commented May 22, 2024

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?

@sakibanda
Copy link
Author

After changing the version code and version names to different values, everything seems to be working fine now.

@romtsn
Copy link
Member

romtsn commented May 22, 2024

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!

@romtsn romtsn closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Platform: Android
Projects
Archived in project
Archived in project
Development

No branches or pull requests

2 participants