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

Cannot query the value of property 'applicationId' #113

Open
eric-sofisoftwarellc opened this issue Nov 18, 2021 · 2 comments
Open

Cannot query the value of property 'applicationId' #113

eric-sofisoftwarellc opened this issue Nov 18, 2021 · 2 comments

Comments

@eric-sofisoftwarellc
Copy link

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.

@KatieBarnett
Copy link

I got this error as well, upgrading to AGP to 7.1.0-alpha05 fixed it (although I have other issues with OkReplay not working)

@hashsalt0
Copy link

I had this issue when I was using com.airbnb.okreplay:gradle-plugin:1.5.0 using com.airbnb.okreplay:gradle-plugin:1.6.0 seems to have fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants