Sunny
Sunny

Reputation: 14828

Cannot query the value of property 'namespace' because configuration of project ':app' has not completed yet

I am upgrading gradle from 6.2 to 7.3.3 but I am getting the error on

Cannot query the value of property 'namespace' because configuration of project ':app' has not completed yet.

This error comes when I comment the below code

//    javaCompileOptions {
//      annotationProcessorOptions {
//        includeCompileClasspath true
//      }
//    }

If I uncomment the code I get below error

No signature of method: build_e2h4qa61bft5s0ue8tk1wwyzn.android() is applicable for argument types: (build_e2h4qa61bft5s0ue8tk1wwyzn$_run_closure5) values: [build_e2h4qa61bft5s0ue8tk1wwyzn$_run_closure5@2c96e5dc]

this method might be removed from gradle 7.3.3 but I could not find the solution for the first error. I tried with --stacktrace, --debug --info but not getting enough info to solve this.

Upvotes: 11

Views: 5436

Answers (3)

Jorgesys
Jorgesys

Reputation: 126533

This error was caused for an outdated version of the Kotlin version plugin:

Cannot query the value of property 'namespace' because configuration of project ':app' has not completed yet

We need to use a new version according to the Android Studio and Gradle version used in your project.

Jorgesys kotlin-gradle-plugin

Upvotes: 0

Ravi
Ravi

Reputation: 11

update your kotlin version

---->ext.kotlin_version = '1.7.10'

Upvotes: 0

Mrinanka Dhar
Mrinanka Dhar

Reputation: 61

I was also facing the same issue, the bellow method helped me, you can try it too.

1-> Go to your build.gradle(AppName) file

2->edit the kotlin version to the latest plugin version that you have installed in your Android studio.

buildscript { ext.kotlin_version = '1.7.10' <--------------------------------

}

Upvotes: 3

Related Questions