Browse Source

Adjust gradle dependencies to enable the build to position assets for the APK

staphen 3 năm trước cách đây
mục cha
commit
123b9aaa41
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      android-project/app/build.gradle

+ 4 - 0
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'