I am relatively new to Android development, and I’m using Android Studio for development. I am trying to work with the camera for my app, and I’m trying to follow the instructions here https://developer.android.com/training/camera/photobasics. It says to use the FileProvider class, but when I try …
Tag: gradle
Gradle – Could not find load main class
I need to tune the JVM memory by help of Gradle. I’ve writen settings in the gradle.properties file: org.gradle.jvmargs=-XX:MaxMetaspaceSize=60M but it didn’t work. Then I’ve done it manually in an IDEA (Run>Edit Configurations…) and wrote the settings for the needed class (in VM op…
BootJar didn’t create BOOT-INF folder after spring boot migration from 1.5.8 to 2.1.14-RELEASE
I have done the migration of the Spring Boot Application from 1.5.8 to 2.1.14-RELEASE and using gradle as a build script. I am using spring-boot-gradle-plugin and spring-boot-dependency-management plugins. In our spring boot project, we are creating multiple executable jar files by creating tasks for each jar…
Unable to build Java 16 app with Gradle via Docker
I have a standard Springboot application written with Java 16. This compiles and builds just fine in my IDE and via CI/CD etc. However, attempting to move the building to a docker file and I’m hit with: I assume this is some under the hood thing but I can’t figure out how to resolve it. I’ve…
Do an exclusion in build.gradle?
I want to add an exclusion to my build.gradle because my jar doesnt run after I compile it. The problem can be fixed if some modules are excluded. How do I do that correctly? The following code should fix the problem: Answer For the most recent gradle versions (7+), you need to use the new syntax implementati…
How to provide JAXB dependency via Gradle package?
TLDR: Which packages (and with which scopes) does one has to include for: using JAXB in a library using XJC in a library running tests in that library include the library as a dependency into another library without having JAXB related runtime errors Details: I’m working with JAXB and XJC with JDK 16 an…
React native issue firebase messaging
I am trying to install the react native firebase messaging module to my project so I can remotely send notifications. When I built my app yarn android/react-native build-android I got an error in which I have been trying to fix for the last 3 hours. build.gradle: settings.gradle: MainApplication.java: Error/O…
What is the purpose of “ext: ‘jar'” in dependencies config?
I see a lot of build.gradle configs with this setting: what is ext: ‘jar’ do? ext is DefaultExtraPropertiesExtension but I can’t find docs for what “jar” is. If I take off the ext: jar in this example I get an error for what looks like a transitive dependency: Is “jar”…
jacocoTestCoverageVerification : How gitlab counts test coverage – Spring Boot?
I have a project where Sprig Boot, JUnit and Gradle are being used. In the Gradle dependency I have found the following lines : As par me these lines indicating that in the Gitlab the test coverage must the 70% at least. When I have the run tests with coverage in IntelliJ IDE, I have got 3 measurements, shown…
How to solve “No SLF4J providers were found” when the “slf4j-api” and “slf4j-simple” are already imported?
I am using Guice in a gradle project. When running the main method, I got the following error: I did some research and added two dependencies in the dependencies section of the build.gradle file as shown below: But the error is still there… Do I need to bind the SLF4J provider with something via Guice? …