Anyone have a problem like this when upgrade Andro...
# android
s
Anyone have a problem like this when upgrade Android Gradle Plugin to 4x?
Copy code
com.android.tools.build:gradle:4.0.1 
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
My error
Copy code
Could not resolve all dependencies for configuration ':app:stagingDebugRuntimeClasspath'.
Could not create task ':app:packageProdDebug'.
Could not get unknown property 'outputScope' for task ':app:packageProdDebug' of type com.android.build.gradle.tasks.PackageApplication.
g
Gradle -> Android Gradle Plugin 😄
s
Changed, thanks @gildor
g
Do you have stracktrace? looks that some of your plugins uses some non-public API and this API changed
s
My current log on AS like this.
Screen Shot 2020-07-20 at 12.55.04.png
I have no idea which plugins is outdate. :((
g
so it’s an issue of this plugin com.deploygate
you should update it
in such cases always check stracktraace to see who actually access missing API
s
@gildor I’m still stuck on these errors, please help me about this 1. I don’t use constraintlayout-2.0.0-beta2 on my project. 2. Attribute already added in project and run successfully on previous Android Gradle Plugin 3.5.2 Thanks.
g
I don’t use constraintlayout-2.0.0-beta2 on my project.
But some of your dependencies probably does
It looks that they become more strict about attributes names in 4.0, I also update one of our own attributes to avoid conflict with one from material design
Try add format explitly to attribute
s
@gildor
Copy code
I don't use constraintlayout-2.0.0-beta2 on my project.
1. Where can I find it? 2. How to force my project to use specific version (stable version)? Thanks.
g
check dependencies graph
How to force my project to use specific version (stable version)?
You can use
resolutionStrategy.force
but keep in mind, there are new features in constraint layouts 2.0, so it will not run with old version if Flow tag is used for example, and it will crash on runtime, not compile time
s
Thanks @gildor
👌 1