androidandroid-studiogoaargomobile

Cannot import AAR from golang into my app (tried previous answers but they do not work)


I am trying to make a golang package that can be included in an Android app.

So I have

So


Solution

  • Save your file in lib folder then import it by using it

    compile( name : 'Name of AAR' , ext : 'aar' )
    

    and

    allprojects {
        repositories {
            jcenter()
            mavenCentral()
            maven { url "https://jitpack.io" }
            flatDir {
                dirs 'libs'
            }
        }
    }
    

    Check it i hope you get solution