Relative Content

Tag Archive for androidgradle

replacing custom build config fields for gradle 9

Currently I’m using gradle + BuildConfig.java to pass information into my app and if I’m reading the docs and warnings right, this functionality is disappearing with gradle 9.

I’m currently at gradle 8.4. My app build.gradle looks like:

Error: Could not find or load main class worker.org.gradle.process.internal.worker.GradleWorkerMain

It appeared on its own a couple of times, although the tests were running before that. Now, having created a new project and written the first test, the error has not disappeared.
I created unitTest for my VisualTransformation logic(compose). This logic locating is in a different class, and it is not in VisualTransformation. And I tried to run a test for this class and I get this stacktrace error:

Why android app is built with different version code and name than what is specified in Gradle file when debuggable is set to false?

I’m trying to publish my android app to Google play store. It seems to me that I have to set debuggable to false (in gradle file). But, the issue what that is, when I set it to false and I built the app, it gets built (.aab) or just regular build with different version code and name than what I specified in gradle file!!!! The version code increases every time I commit to the branch and the version name includes my commit name!!

Why android app is built with different version code and name than what is specified in Gradle file when debuggable is set to false?

I’m trying to publish my android app to Google play store. It seems to me that I have to set debuggable to false (in gradle file). But, the issue what that is, when I set it to false and I built the app, it gets built (.aab) or just regular build with different version code and name than what I specified in gradle file!!!! The version code increases every time I commit to the branch and the version name includes my commit name!!

the difference between scopes in gradle simple application and android application

I’m new to the world of gradle, actually I want to know the diffirents scopes in gradle simple application, actually as I see there is runtimeClasspath and compiletimeClasspath for simple gradle application, but when it comes to android application with gradle there are diffirents,like releaseRuntimeClasspath …, i want to know each one and why it’s used, also for the task dependencies that shows the tree of dependencies, it takes an argument –configuration to specify the scope.

Failed to import own library from Gitlab Android

I have published own lib on the private maven repo. Now I’, trying to import it to the project. The library is available and I’m trying to add it to the available project. I added it to build.gradle of the module via implementation 'pkg:utils_lib:1.0.0' and then to project build.gradle: