I have two applications where I face the same issue while trying to update project target API from 27 to 29. To do this, first I need to update Gradle plugin at least to 3.2.+. Project is building fine with 3.1.4, but as soon as I rise Gradle plugin to: classpath ‘com.android.tools.build:gradle:3.5.1 di…
Tag: gradle
ERROR: Failed to resolve: androidx.annotation.annotation:1.1.0: Affected Modules: app
i try to add this package androidx.annotation.annotation:1.1.0 to fix some problem but i get this ERROR: Failed to resolve: androidx.annotation.annotation:1.1.0: Affected Modules: app this is my build.gradle what i can do to fix that Answer androidx.annotation.annotation:1.1.0 is not a correct dependancy decl…
Resolve circular dependency in gradle
I recently started developing a java project which has some sub projects within it. All of them are gradle. So let’s say there are two projects A and B which is already implemented. And I’m going to introduce another graldle project C. And the dependencies are like this. A has dependencies on B B …
Kotlin and Java project in Eclipse, NoClassDefFoundError, where are the class files?
In this question the basic configuration of Kotlin + Java + Gradle in Eclipse is described. It allows me to create Kotlin code. The Kotlin and Java natures are correctly present. Unfortunately, the code does not run. Not as Kotlin application nor as JUnit test. When my (i.e. created by me) Kotlin class is cal…
What is difference between build project in IntelliJ and gradle build?
What is difference build project in IntelliJ and gradle build? Has IntelliJ IDEA its own build system? In addition, What is difference run in IntelliJ and gradle bootRun? Answer Build project is IntelliJ’s own build-in build mechanism, it simply compiles all modified and dependent files in the project. …
Error with react-native run-android after upgrade to react-native version 0.60.4
I am upgrading react-native from 0.59.5 to 0.60.4 with my existing application. But facing a problem as below And my build.gradle is I have absolutely no clue what this error is about and could not find much helpful articles. Please help me out. Answer Looks like Gradle is currently erroring on builds using o…
Avro – java.io.IOException: Not a data file
I am using https://github.com/allegro/json-avro-converter to convert my json message into an avro file. After calling the convertToAvro method I get a byte array: byte[] byteArrayJson. Then I am using the commons library from Apache: The file is created. When I try to reconvert it to json, using: I have creat…
Multiple dependency versions with Gradle 5
I need to support 2 different versions of the same library (to support a legacy version), es4hadoop for Apache Spark. Version 6.2.2(https://mvnrepository.com/artifact/org.elasticsearch/elasticsearch-spark-13_2.10/6.2.2) Version 6.3.2 (https://mvnrepository.com/artifact/org.elasticsearch/elasticsearch-spark-13…
Can a java 8 project depend on a java 11 dependency in gradle
I have a project in Java 8 and attempting to utilise a library written in Java 11. I am getting an error: class file has wrong version 55.0, should be 52.0 Is this something that is basically not possible or is there some Gradle configuration which allows a Java 8 project to use a library written and compiled…
No repackaged dependencies when building Apache Beam Cassandra JAR
Trying to compile and use the snapshot for Apache Beam Cassandra JAR. Seems like the build does not pack the Guava dependencies within the JAR. This causes compilation to fail when the JAR is used by other code – see following Exception: I couldn’t find anyway to make the gradle build package the …