Skip to content

Cannot query the value of property 'applicationId' #113

Description

@eric-sofisoftwarellc
Caused by: java.lang.IllegalStateException: Cannot query the value of property 'applicationId' because configuration of project ':app' has not completed yet.
        at org.gradle.api.internal.provider.AbstractProperty$NonFinalizedValue.maybeFinalizeOnRead(AbstractProperty.java:368)
        at org.gradle.api.internal.provider.AbstractProperty.beforeRead(AbstractProperty.java:229)
        at org.gradle.api.internal.provider.AbstractProperty.calculateOwnValue(AbstractProperty.java:126)
        at org.gradle.api.internal.provider.AbstractMinimalProvider.get(AbstractMinimalProvider.java:84)
        at com.android.build.gradle.internal.api.BaseVariantImpl.getApplicationId(BaseVariantImpl.java:245)
        at com.android.build.gradle.internal.api.TestVariantImpl_Decorated.getApplicationId(Unknown Source)
        at okreplay.OkReplayPlugin$Companion.testApplicationId(OkReplayPlugin.kt:102)
        at okreplay.OkReplayPlugin$Companion.access$testApplicationId(OkReplayPlugin.kt:88)
        at okreplay.OkReplayPlugin$applyPlugin$1$1.execute(OkReplayPlugin.kt:68)
        at okreplay.OkReplayPlugin$applyPlugin$1$1.execute(OkReplayPlugin.kt:14)
        at org.gradle.configuration.internal.DefaultUserCodeApplicationContext$CurrentApplication$1.execute(DefaultUserCodeApplicationContext.java:123)
...

All I did was add
classpath 'com.airbnb.okreplay:gradle-plugin:1.5.0'
and
apply plugin: 'okreplay'
to build.gradle. AS 2020.3.1 patch 3, com.android.tools.build:gradle:7.0.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions