I have a basic question. In my project, I defined a final varaible in the root build.gradle, like below
final int PUBLISH_TYPE_DEV = 1
allprojects {
repositories {
...
}
project.ext {
versionCode = 63055
...
}
}
Then, I need refer the PUBLISH_TYPE_DEV in the app's build.gradle file. I tried directly "PUBLISH_TYPE_DEV", or project.PUBLISH_TYPE_DEV, or project["PUBLISH_TYPE_DEV"], none of them work for me. It shows "Could not get unknown property 'PUBLISH_TYPE_GREY"" message.
How to use this final variable in the submodule's build.gradle?