I switched my android studio to using a packaged version of java 8.
When I switched to java 8, I added that the connector is enabled and the version is up to 8, but this broke everything for the release build.
Then I switched this value from true to false.
jackOptions { enabled false }
Then I set this value from 8 to 7.
compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 }
I assume that if your code and the libraries that you include in your project work for java 7, your code should be created for release.
If this does not work, and you should use these java functions, it seems to you that you will need to move the minimum version to 24.
source share