Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [gradle]

Gradle is a project build automation tool that uses a Groovy DSL. Gradle build scripts support Maven and Ivy repositories as well as plain file system for dependency management.

20,967 questions with no upvoted or accepted answers
30 votes
3 answers
7k views

Gradle build stuck at "Waiting to acquire shared lock on daemon addresses registry."

I'm currently using HP Fortify tool to scan for security vulnerabilities in a project. At the time of scanning Fortify's CLI allows build tools to integrate into its CLI commands so as to build and ...
Sekhar Routray's user avatar
30 votes
1 answer
8k views

No symbol directories found - please check your native debug configuration

I'm Using Android studio 2.2 and Android.mk file followed this https://developer.android.com/studio/debug/index.html c++ files located inside Android module and not in the calling application. I ...
BoazGarty's user avatar
  • 1,446
29 votes
0 answers
6k views

missingDimensionStrategy everywhere - Is there no better way?

I have a library project - let's call it lib1 which has custom flavorDimensions specified. More precisely there is buld dimension with actual flavors full and production. This library is used by ...
bio007's user avatar
  • 972
28 votes
0 answers
965 views

Copy constructor using "initWith" for "productFlavors" and "sourceSets"

With reference to this answer. Is it possible to create a copy constructor for productFlavors and sourceSets using initWith just like the one in the linked answer. That one worked great for buildTypes....
Viral Patel's user avatar
  • 33.1k
22 votes
1 answer
19k views

Gradle archive contains more than 65535 entries

I am integrating hadoop2.5.0 for running mapreduce job and spring-boot-1.2.7 release and getting error while including this Archive contains more than 65535 entries. My gradle jar dependency jar { ...
Saurabh's user avatar
  • 7,713
22 votes
1 answer
20k views

Gradle compile dependency is not added to classpath

I've added the reflections framework to my android project. However it wasn't added to the classpath. Android Studio suggests that I need to add it manually, however I cannot start my app since gradle ...
mvieghofer's user avatar
  • 2,876
21 votes
1 answer
419 views

Kotlin compatibility with JavaFXPorts

I would like to build a JavaFX Android app with JavaFXPorts and Kotlin code. Is it possible to use Kotlin in a JavaFXPorts project? Here's my example Gradle (version 5.6.4) project: Note: Problem ...
Küroro's user avatar
  • 658
21 votes
2 answers
970 views

Importing library project multiple times in Android Studio 1.3.1 causes library to disappear

I have a library project called Common that I use for functionality that is shared by my other projects, Consumer and Management. Consumer itself is also a library project that is used by other apps. ...
spacitron's user avatar
  • 2,143
21 votes
1 answer
5k views

Run all UI/Unit tests from a multi-module project using a single command

We have a multi-module Android project, in which some modules contain UI tests and some contain Unit tests. We wish to run all UI tests from all modules using a single Gradle command and do the same ...
Bogdan Zurac's user avatar
  • 6,450
20 votes
2 answers
2k views

Error building Ionic app: Failed to execute aapt (CordovaLib:processDebugResources)

I'm trying to use Ionic framework to build hybrid mobile apps but I'm facing the following problem since a few days. When I want to build the application (which is actually a blank project), the ...
Jerome's user avatar
  • 201
19 votes
1 answer
1k views

Configure netbeans 8.0 gdb to work with gradle cpp plugin

Lately I've switched from Visual Studio in Windows 7 to Ubuntu with Netbeans 8.0 (C++). From that time I have big problem with debugging my application from NetBeans (gdb works perfectly fine). I have ...
r.piesnikowski's user avatar
18 votes
1 answer
6k views

Excluding .class files from Gradle dependency

I'm trying to import https://github.com/Kickflip/kickflip-android-sdk using gradle into my android build and I'm getting : UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: ...
silverscania's user avatar
17 votes
1 answer
3k views

Can I set a BuildConfig flag that returns whether or not an apk is built with the `connectedAndroidTest` gradle task?

I have parts of my app that I don't want to run if we're running Android unit tests, so I want to surround them with something like if (!BuildConfig.TESTING) { // Code here that I don't want to run ...
Matthew's user avatar
  • 6,466
16 votes
2 answers
2k views

Plain Java library in Android Studio giving compile error inside the editor: Cannot access 'java.io.Serializable' which is a supertype of

I started working on an Android project in kotlin using clean architecture with a data and a domain layer, the domain layer is a plain java-library (no android dependencies) This is the Domain module ...
Daniele Segato's user avatar
16 votes
2 answers
2k views

Duplicate files during packaging of an APK

I use Android Studio and I have several libraries that I use there. I have: android-query-full.0.25.10.jar gson-2.2.4-sources.jar slide-menu.jar I have defined in the build.gradle file to compile ...
Mortalus's user avatar
  • 10.7k

15 30 50 per page
1
2 3 4 5
1398