Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

451
Vistas
Not able to access source code of AAR file build in Kotlin

I build a module in Kotlin, then import in my project. I put minifyEnabled false in module's build.gradle file. But unable to see the source code or unable to put a breakpoint.

It's working with Java but not with Kotlin.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Copy your aar file into src/main/libs folder.

enter image description here

Open Project Level build.gradle and add flatDir and its body's content like in the following example:

allprojects {
    repositories {
        flatDir {
            dirs ‘src/main/libs’
        }
        jcenter()
        google()
    }
}

After this open Application Level build.gradle and add aar file into dependencies:

dependencies {
    compile(name:'myFile', ext:'aar')
}

Then in Android Studio 3.2 press Ctrl-Shift-A when you're on Windows or press Cmd-Shift-A when you're on a Mac, type sync on your keyboard and choose Sync Project with Gradle Files command.

minifyEnabled flag stays for ProGuard, and it's turned off by default. Thus, both debug and release builds are not using ProGuard, and proguardFiles parameter's ignored.

enter image description here

Also, read this: Adding local .aar files to Gradle build using “flatDirs” is not working.

And this post: How to Include an External .aar File Using Gradle?

And this post: Why are there two build.gradle files in an Android Studio project?.

Hope this helps.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda