glush
August 23, 2018, 7:04am
2
Thank you for nice tutorial.
The only mark:
This setting
3
org.gradle.configureondemand=true
make build error if using gradle 4.7+ with AS 3.1.4
glush:
configureondemand
Hi,
It can be seen from the Google Documentation here that the supported version for gradle to be used for Android Plugin 3.1+ is 4.4+.
But as per another page in their own documentation , they also admit that if one uses gradle 4.6+ then they will experience some build errors.
The issue is supposed to be fixed in a future release of the Android Gradle plugin.
For now, the straightforward solution is to use gradle version below 4.6 i.e 4.4, 4.4.1, 4.5.
Let me know if it helps.
Best,
Nishant
zingam
September 25, 2018, 9:30am
4
Can I pass values from the build.gradle.kts into the Dependecies.kt
Specifically I want to setup the buildDir directory in one place that projects to all projects (including the one in buildSrc)
Also you should add this to the kts file:
repositories {
jcenter()
}
@nisrulz Can you please help with this when you get a chance? Thank you - much appreciated! :]
You can now use Kotlin instead of Groovy to write Gradle scripts
This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!