After updating to AS Canary 15 and gradle 7.0 I ge...
# gradle
f
After updating to AS Canary 15 and gradle 7.0 I get this error
Copy code
- Type 'ArgumentsGenerationTask' property 'applicationId' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
I'm not certain how to address this. Any suggestions? I show the relevant code in the thread
Copy code
flavorDimensions("type")

    productFlavors {
        create("free") {
            buildConfigField("boolean", "IS_DONATE", false.toString())
            applicationId = Config.Application.applicationId
            setDimension("type")
        }
        create("donate") {
            buildConfigField("boolean", "IS_DONATE", true.toString())
            applicationId = Config.Application.donateApplicationId
            setDimension("type")
        }
    }
v
Your
navigation-safe-args-gradle-plugin
plugin version is not Gradle 7 compatible. Change to the
androidx
version of it.
f
I am using the
androidx
plugin
Copy code
plugins {
    id("com.android.application")
    kotlin("android")
    kotlin("kapt")
    id("androidx.navigation.safeargs.kotlin")
    id("dagger.hilt.android.plugin")
    id("com.github.ben-manes.versions") version "0.38.0"
    id("kotlin-android")
}
v
Maybe outdated?
f
what do you mean by that?
v
Maybe an outdated version?
That is not yet Gradle 7 compatible
This guy here used the old
android
version and got rid of your error by switching to the
androidx
version: https://stackoverflow.com/questions/67039491/some-problems-were-found-with-the-configuration-of-task-appgeneratesafeargsde
f
the problem would appear to be somewhat related to flavors, I have a different app using the same version but without flavors and it builds fine there
v
The problem is that a task is used, that is not Gradle 7 compatible
I'm not an android guy, so I have no idea when or when not that task type is used
I just googled for you which plugin this task comes from
Maybe without variants that task is not used
f
I had found that SO post and I confirmed that I was not using the non X variant of the plug-in
v
Now did you confirm you are using the latest version? You didn't show any version, you probably define it somewhere else
f
let me check
it's not the very latest, let me update the version
that turned out to be the issue, building completes now, thanks a bunch!