Skip to content
Advertisement

Tag: gradle

Any ideas on how to solve Duplicate class with android jetified?

I’m getting the following error when trying to build an android application with two third-party dependencies. Does anyone know how solve this issue? I have a minimal android project if anyone can help me solve this: https://github.com/mohammedhammoud/geidea-stario10-duplicate-class-deps-error Answer This is now solved. I contacted the maintainers of the libraries, they added flattenpackagehierarchy to proguard which solved it.

How to trigger a task after build

I have the following code: If I write build.doLast(generateJavaApi), IntelliJ tells me the following: No candidates found for method call build.dolast. Why is that and how would you trigger generateJavaApi after build? (so that running gradle build would automatically also trigger the generation of the java api) Answer What you want is this:

In Android Jetpack compose how to achieve GestureDetector.SimpleOnGestureListener…..?

I want to observe onFling Function to detect Velocityx and Velocity Means Swiping force/Velocity. In android we attach this to the android view.But donot find a way how to call this in Jetpack compose or alternative function for this in jetpack compose…? Answer Please take the Animation-in-Compose codelab to understand better, but for now, here’s how you can achieve something

cordova gradle build SUCCESSFUL turns into FAILED

cordova gradle build SUCCESSFUL and then turns into FAILED. Maybe something is wrong with the versions? It seems to download a lower gradle version in the middle… why? Starting with versions: Gradle 7.3.3, Cordova 10.0.0, Java/JDK 17.0.2 – Here is the transcript (leaving only the main things): Answer After struggling for hours to find the correct versions, it appears that

Advertisement