-
Notifications
You must be signed in to change notification settings - Fork 110
When are we supporting gradle distribution gradle-6.1.1 #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I didn't see it documented anywhere, but a bunch of blog posts and stackoverflow answers pointed me at replacing |
The same issue. AndroidStudio is ready for 6.1.1 for already some time. |
Yes, please update to gradle 6.1.1 |
Gradle upgrade says clearly what changed for Jacoco: https://docs.gradle.org/current/userguide/upgrading_version_5.html#other_deprecated_behaviors_and_apis |
Apparently, on the class JacocoAndroidPlugin, line 73, this |
Hi guys, you can use 0.1.5-SNAPSHOT. It works fine because fixed in snapshot version. @arturdm could you please release it as stable in order to fix the problem for latest gradle? |
@lion4ik I don't find this version :/ |
You can use https://plugins.gradle.org/plugin/com.hiya.jacoco-android as a temp solution till jacoco-android-gradle-plugin support 6.1.1. It is a fork fixes the issue by @autonomousapps. |
Would it be possible to have a released version ? |
I have made my fork open source (apologies for somehow missing this earlier). Obviously this repo is no longer maintained. https://github.com/hiyainc-oss/android-jacoco |
try this way:
It worked for me. |
Since Artur is not updating this plugin, I decided to go with another solution following this tutorial -> https://www.rallyhealth.com/coding/code-coverage-for-android-testing Basically, what you need to do is remove this plugin and use Jacoco plugin directly, and then just add Anyway just follow the tutorial, but notice - it's a bit outdated, so you will have to remove this line from that jacocoUnitTestReport task |
… binding. * remove kotlin android extensions plugin. * upgrade kotlin_version to 1.4.21. * upgrade gradle to 4.0.2. * upgrade jacoco-android to 0.1.5-SNAPSHOT to have it work with the new gradle version, for more info see arturdm/jacoco-android-gradle-plugin#83 * remove android.enableUnitTestBinaryResources=true from gradle.properties cause it's deprecated. * support view binding. * adapt MainMenuFragment with view binding
… binding. * remove kotlin android extensions plugin. * upgrade kotlin_version to 1.4.21. * upgrade gradle to 4.0.2. * upgrade jacoco-android to 0.1.5-SNAPSHOT to have it work with the new gradle version, for more info see arturdm/jacoco-android-gradle-plugin#83 * remove android.enableUnitTestBinaryResources=true from gradle.properties cause it's deprecated. * support view binding. * adapt MainMenuFragment with view binding ** extra: * fix new lint warnings due to gradle upgrade
… binding. * remove kotlin android extensions plugin. * upgrade kotlin_version to 1.4.21. * upgrade gradle to 4.0.2. * upgrade jacoco-android to 0.1.5-SNAPSHOT to have it work with the new gradle version, for more info see arturdm/jacoco-android-gradle-plugin#83 * remove android.enableUnitTestBinaryResources=true from gradle.properties cause it's deprecated. * support view binding. * adapt MainMenuFragment with view binding ** extra: * fix new lint warnings due to gradle upgrade
… binding. * remove kotlin android extensions plugin. * upgrade kotlin_version to 1.4.21. * upgrade gradle to 4.0.2. * upgrade jacoco-android to 0.1.5-SNAPSHOT to have it work with the new gradle version, for more info see arturdm/jacoco-android-gradle-plugin#83 * remove android.enableUnitTestBinaryResources=true from gradle.properties cause it's deprecated. * support view binding. * adapt MainMenuFragment with view binding ** extra: * fix new lint warnings due to gradle upgrade
Currently gradle sync will fail stating
Cannot set the value of read-only property 'executionData' for task ':app:jacocoTestInternalDebugUnitTestReport' of type org.gradle.testing.jacoco.tasks.JacocoReport.
when upgrade to gradle-6.1.1The text was updated successfully, but these errors were encountered: