Adjust gradle dependencies to enable the build to position assets for the APK
diff --git a/android-project/app/build.gradle b/android-project/app/build.gradle
index 8e59d9e..baa0edc 100644
--- a/android-project/app/build.gradle
+++ b/android-project/app/build.gradle
@@ -35,6 +35,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
+ applicationVariants.all { variant ->
+ tasks["merge${variant.name.capitalize()}Assets"]
+ .dependsOn("externalNativeBuild${variant.name.capitalize()}")
+ }
if (!project.hasProperty('EXCLUDE_NATIVE_LIBS')) {
sourceSets.main {
jniLibs.srcDir 'libs'