I am trying to make a golang package that can be included in an Android app.
So I have
So
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
I also got this issue today. Apparently the writer forgot to mention this in the doc Mobile#building-and-deploying-to-android.
Below is the missing step:
copy "yourgolangmodule.aar" and "yourgolangmodule.jar" to "yourreactnativeproject\android\app";
in "yourreactnativeproject\android\app\build.gradle" file, add below:
(how to get the clue: compare between this file in the example project from doc and the one in your project.)