Trying dev12, getting this when I build: ```FAILUR...
# compose
c
Trying dev12, getting this when I build:
Copy code
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugKotlin'.
> Could not resolve all dependencies for configuration ':app:kotlinCompilerPluginClasspath'.
   > Could not create task ':app:extractDeepLinksDebug'.
      > Cannot obtain value from provider of environment variable 'ANDROID_AAPT_IGNORE' at configuration time.
        Use a provider returned by 'forUseAtConfigurationTime()' instead.
any pointers?
h
Could you show your build.gradle (app) file?
c
well now I feel a bit silly because I'd commented out
Copy code
apply plugin: 'com.android.application'
and putting it back fixes my issue. Thanks 😄
Actually now I feel silly again because the problem is still there - I'll share the relevant parts of my build.gradle
🤣 1
there are my app and project build gradles respectively, with the mess removed
h
So, it was working and then you just updated the compose version ?
And 💥 ?
I see one strange thing 🤔 To enable
viewBinding
you would not use:
Copy code
viewBinding {
    enabled = true
}
?
c
yeah basically
DSL element 'android.viewBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.viewBinding'.
looks like viewVinding { enabled = true} is the old way
h
on your build.gradle it's a bit different
oooh!
Got it
c
😄
r
Revert gradle wrapper back to milestone-1 instead of rc-1
c
Oh I am using rc-1 I'll give that a go now
That issue is fixed when I am using gradle milestone-1 instead, good call!
thanks both of you 🙂
r
🙂
h
\o/
Awesome
v
It does not depend on Compose. I had the same error
Copy code
Cannot obtain value from provider of environment variable 'ANDROID_AAPT_IGNORE' at configuration time.
        Use a provider returned by 'forUseAtConfigurationTime()'
when I tested with gradle of the simple default project “Basic Activity”
Probably, Gradle 6.5-rc-1 has a bug.
s
it’s AGP being buggy I think in this case, not Gradle
s
You need to use milestone 1 not 2 or rc1. The error is not a bug a new check and new agp will come with a fix for it.