Skip to content

Instantly share code, notes, and snippets.

@hgodinez89
Created July 6, 2019 18:28
Show Gist options
  • Save hgodinez89/eb7c509e358ef90f896510649ca06045 to your computer and use it in GitHub Desktop.
Save hgodinez89/eb7c509e358ef90f896510649ca06045 to your computer and use it in GitHub Desktop.
Generar apk de 64 bits en build.gradle de Android Flutter
afterEvaluate {
mergeReleaseJniLibFolders.doLast {
def archTypes = ["arm-release", "arm64-release"]
archTypes.forEach { item ->
copy {
from zipTree("$flutterRoot/bin/cache/artifacts/engine/android-$item/flutter.jar")
include 'lib/*/libflutter.so'
into "$buildDir/intermediates/jniLibs/release/"
eachFile {
it.path = it.path.replaceFirst("lib/", "")
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment