My app has a hard dependency on com.google.guava:guava:23.3 or superior But I am also using org.seleniumhq.selenium:selenium-java:3.0.1 which is incompatible with guava versions > 22.0 as discussed here: https://github.com/SeleniumHQ/selenium/issues/4381 I am pretty new to Java, what is the best course of …
Tag: gradle
java.lang.ClassNotFoundException: Cannot find implementation for
I need help with the following error: UserMapper interface has annotation. I use eclipse Neon with buildship plugin, org.mapstruct and spring are imported with Gradle. It works without this error on my colleague’s IntelliJ Code for UserMapper: From what I read it could do something with compiler failing…
Gradle build ignores Jetbrains annotations
Let’s say we have the following test code: The test will pass when running gradle test directly or if IDEA delegates the action to gradle. But it will fail with IllegalArgumentException: Argument for @NotNull parameter ‘value’ must not be null exception if it runs using IDEA runner (not dele…
Gradle is failing on malformed pom.xml in Central Maven
I have this gradle script snippet: Now when running a build, Gradle consistently fails on downloading transitive dependencies and gives me this message: When I had a look at the content of the pom.xml file from the repository, I noticed that, although the pom.xml is in the right place, it indicates a version …
app:transformDexArchiveWithExternalLibsDexMergerForDebug
hi guys i get this error when i try to run my app Error:Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’. com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex i don’t know why! I tried also to clean and rebuild project but i get alway…
java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex in Android Studio 3.0 [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 4 y…
Exclude one class file in gradle Android Studio
In my projects, I need to import third party jar file and Facebook SDK. Both include same BundleJSONConverter class. So, I cannot do generate signed APK. It always shows duplicate entry com/facebook/internal/BundleJSONConverter. So, I want to exclude in Facebook or SkinSDK.jar. I tried like It’s not wor…
Why doesn’t Gradle or Maven have a dependency version lock file?
I’ve recently been introduced to the concept of a dependency version lock file when reading about package managers like NPM, Yarn, Paket, Cargo, etc. My understanding is that it is a file that lists all direct and transitive dependencies along with their exact version number so subsequent builds are gua…
Gradle NoClassDefFoundError when running jar
I’m trying to set up a Gradle project with some Velocity functions in it. So far I have the following files: src/main/java/com/veltes/velotest.java: build.gradle: Now, when I run gradle assemble and gradle build everything is fine, but when I try to run the project (same for running the built jar in bui…
Gradle – Could not target platform: ‘Java SE 8’ using tool chain: ‘JDK 7 (1.7)’
I am trying to import Gradle project in Intellij Idea with local Gradle distrib and getting stacktrace with the following message: Could not target platform: ‘Java SE 8’ using tool chain: ‘JDK 7 (1.7)’. Could anyone explain please what could be the reason? Answer Finally I imported my …