Comments (5)
Thank you now it's working!!
It was due to the fact I had and older version of JaCoCo (v0.8.1) I update it to v0.8.6 and it was perfectly fine!
Reading the changelog, v0.8.2 was the first one in support Java 11
Thanks again! I'm closing this issue
from gitlab-ci-android.
I had something similar and got it to work properly with this in my Gradle file:
tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
jacoco.excludes = ['jdk.internal.*']
}
Alternatively you could stick to the 29
tag of the Docker image, that still uses OpenJDK 8.
from gitlab-ci-android.
Thanks! I'll try that and let you know! I was using a previous version in the meanwhile
from gitlab-ci-android.
@jangrewe where should I put this?
tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
jacoco.excludes = ['jdk.internal.*']
}
I've try placing it in my app level build.gradle
outside all the inner blocks with no luck.
Ans instead of shooting in the dark I think you can point me out where. And yes, as temporary fix I'm sticking to tag 29.
Also, FWIW I'm using grade wrapper version 5.4.1-all
. Maybe those lines are compatible with newer version and not mine.
Thanks!
from gitlab-ci-android.
I'm using Gradle 6.1.1
Make sure you also use a recent/maintained version of the jacoco plugin!
build.gradle
:
buildscript {
dependencies {
classpath 'com.hiya:jacoco-android:0.2'
}
}
app/build.gradle
:
apply plugin: 'com.hiya.jacoco-android'
tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
jacoco.excludes = ['jdk.internal.*']
}
from gitlab-ci-android.
Related Issues (20)
- [Suggestion] Gradle and NDK tool HOT 1
- update build-tools to 29.0.3 HOT 1
- Feature request: NDK support HOT 1
- Update build-tools to 30.0.0 HOT 3
- Replace ANDROID_HOME with ANDROID_SDK_ROOT HOT 1
- chmod: cannot access './gradlew': No such file or directory HOT 1
- Add NDK version HOT 1
- Java version error HOT 3
- Pass txt file to sdkmanager HOT 2
- Can not build app that uses RenderScript HOT 1
- error=7, Argument list too long
- NoClassDefFoundError HOT 1
- NDK support needed! HOT 1
- Could not find ANDROID_SDK_ROOT HOT 10
- Git HOT 2
- sdkmanager doesn't work due to JDK 11, needs 8
- Add supporting Android NDK HOT 3
- Release SDK 31 HOT 3
- bad interpreter: Permission denied HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlab-ci-android.