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 to import it, I get the error “error: package androidx.core.content does not exist” I’ve already
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 options: field) and it works. Can we do the same by help of Gradle? I’ve tried to
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 as below In the above code after executing either gradle assemble, It has created
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 tried different Gradle images
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 implementation or compileOnly. This
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 and Gradle. I created a project A
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/Output: Any help is greatly appreciated. Answer Add after => import com.facebook.react.ReactApplication;
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” downloading a precompiled uber jar or something instead of a
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 in
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? My main method is very