All Questions
33
questions
0
votes
0
answers
34
views
Is it possible to make a build flavor "non-combinable" dimension-wise in Android build.gradle configuration?
I have encountered a problem while configuring an Android app build.gradle's build variants.
As a rule, all build flavors are being combined to all other build flavors with different dimensions in M:M ...
0
votes
1
answer
393
views
Can I create a gradle file with Kotlin to have all my dependencies?
I'm migrating a multi-module project from Groovy to Kotlin Gradle on Android. Before I had several gradle files dedicated to different common things, for example I had in a gradle file those ...
-1
votes
1
answer
66
views
Duplicate class error when using debug and release library in Android
I have a library in which I have debug and main packages like so:
debug - Android/implementation/src/debug/kotlin/myclass/DebugClass.kt
main - Android/implementation/src/main/java/some/other/folders/...
0
votes
1
answer
56
views
If I was given an Android App to start working on. Would that mean I also need a key to go along with it?
I was given a completed app to publish to the android store...
I created an key for it...
When trying to upload it to a closed testing on the android store I get this error:
"Your Android App ...
0
votes
1
answer
133
views
In Gradle Kotlin, how to iterate like each{} in Groovy?
In the Android doc, there's a build.gradle snippet describing the set up for com.google.protobuf:
protobuf {
protoc {
artifact = "com.google.protobuf:protoc"
}
...
0
votes
2
answers
1k
views
How to access current build variant in gradle.properties?
I need to access the current build variant in gradle properties whenever I change the build variant through the Android Studio interface. Is there any way to access that value?
The problem:
So I have ...
16
votes
1
answer
7k
views
How to replace the deprecated kotlinOptions in a java-library & kotlin module?
Within my Android application project I am using the following Gradle (Groovy) configuration for a library module:
// build.gradle
apply plugin: "java-library"
apply plugin: "kotlin&...
0
votes
0
answers
177
views
How to setup gitlab pipeline for android deployment with fastlane
I am setting up the GitLab pipeline for building and deploying Android app to the store.
I am following the official GitLab instructions from here and have encountered a problem with setting up Gradle ...
1
vote
0
answers
216
views
Compile Error while migrating from groovy to kotlin dsl
I am migrating certain Gradle project from the Groovy to the Kotlin DSL.
My module level build.gradle.kts are showed below.
plugins {
id("com.android.application")
id("org....
2
votes
2
answers
1k
views
Error in :app:minifyAlphaReleaseWithR8 For Android Studio Flamingo Java 17
After upgrading to Android Studio Flamingo using JDK 17 and AGP 8 I'm getting this error:
ERROR: R8: Library class android.net.http.AndroidHttpClient implements program class org.apache.http.client....
1
vote
0
answers
149
views
Create new buildType for submodule based on parent project
I have and android project which has buildTypes configured for release, debug, dev, stag. I have a module which has buildTypes configured for release, debug. I want to add dev and stag buildType to my ...
0
votes
1
answer
366
views
Caused by: java.lang.RuntimeException: Duplicate class com.squareup.okhttp.Address found in modules
I have a problem and I haven't been able to find a way out even though I tried some solutions on the internet.
After adding the sdk named enverify.aar to my current project, I started getting the ...
0
votes
0
answers
102
views
groovy syntax vs kotlin syntax vs kotlin-in-groovy
Take this document here for ex: https://developer.android.com/jetpack/androidx/releases/navigation#groovy
Given I am learning kotlin for android and am inside a kotlin android project:
Why is it that ...
0
votes
1
answer
229
views
How to migrate protect level build.gradle file from Gradle Groovy to Gradle Kotlin DSL
I'm trying to migrate my protect level build.gradle file from Gradle Groovy to Gradle Kotlin DSL. I've watched several tutorials but none of them clearly explain what to change the code to in the ...
1
vote
1
answer
246
views
EasyLauncherConfig with name 'debug' not found
I'm using easylaucher library Easylaucher library to add a ribbon on the app icon. I'm using kotlin DSL but when I apply the easy laucher configurations it throws EasyLauncherConfig with name 'debug' ...