Relative Content

Tag Archive for androidgradle

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:

how to fix gradlew not found

I’m running a android project on docker container with this jdk version openjdk:17-jdk-slim
The android project is working with gradle version 8.5.
When I tried to build the application using ./gradlew assembleDebug command I have got this issue
./gradlew assembleDebug bash: ./gradlew: /bin/sh^M: bad interpreter: No such file or directory
When I tried to use those two solutions
1st solution : using this command first : RUN sed -i 's/r$//' ./gradlew
2nd solution : using those commands :

Exposing a gradle task in an android AAR

I have an android library distributed as an AAR via maven. For my library to work the app needs to download a file and store it into its assets folder. I have created a task in my library’s build.gradle file that does this.