I’m extremely unknowledgeable about Gradle and Bitrise caching. All of the builds for my Android react-native app show this:
Collecting gradle caches... Generate dependencies map... Gradle task failed, error: exit status 1, output: FAILURE: Build failed with an exception. * Where: Build file '/bitrise/src/srcgen/build.gradle' line: 5 * What went wrong: A problem occurred evaluating root project 'srcgen'. > Could not get unknown property 'envType' for object of type org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED in 1s Done
The build of the APK works fine, it’s just this noise in the logs.
That srcgen/build.gradle file it’s running is just a utility that we occasionally run during development. We don’t need to automate anything about it on Bitrise.
How do I exclude it from whatever Gradle is doing here? I saw on this question that I could disable caching, but I’d rather not do that if I don’t need to.