I'm using jenkins to build my Android app. My app makes use of HockeyApp for crashlogging. I have serveral buildTypes but I want to prevent crashes being logged on the buildType I use for development.
I solved it this way
if(!BuildConfig.BUILD_TYPE.equalsIgnoreCase("develop")) {
CrashManager.register(...);
}
However when building on Jenkins my build fails with this error
error: package BuildConfig does not exist
I have been using BuildConfig.DEBUG in my app without any problems so far. Any ideas what's causing this?