I\'m seeing the following error in my Android project after updating to Gradle Build Tools 2.1.3 and Gradle 2.14.1. It happens immediately when I run the application. How do I f
I think I found the best solution to this issue. For some reason the jacoco-agent.jar does not get included by default and it has the Offline.class that can't be found. You simply need to add the dependency for the agent. However, make sure it is the exact same version as the version of the jacoco plugin you are using since the end package Offline.class is found in is a commit hash. Here is what I am doing:
compile 'org.jacoco:jacoco-maven-plugin:0.7.9'
compile 'org.jacoco:org.jacoco.agent:0.7.9:runtime'