mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 22:37:14 +08:00
Fixed template build gradle error on x86_64 (#23897)
Summary: Fixes #23893 . Fixes x86_64 apk build. [Android] [Fixed] - Fixed template build gradle error on x86_64 Pull Request resolved: https://github.com/facebook/react-native/pull/23897 Differential Revision: D14459720 Pulled By: hramos fbshipit-source-id: e78ac06771736915ff6592ecf5310b536d425ef4
This commit is contained in:
committed by
Facebook Github Bot
parent
c0ea099c85
commit
4aa731ae76
@@ -113,7 +113,7 @@ android {
|
||||
reset()
|
||||
enable enableSeparateBuildPerCPUArchitecture
|
||||
universalApk false // If true, also generate a universal APK
|
||||
include "armeabi-v7a", "x86", "arm64-v8a", "x86-64"
|
||||
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
|
||||
}
|
||||
}
|
||||
signingConfigs {
|
||||
@@ -141,7 +141,7 @@ android {
|
||||
variant.outputs.each { output ->
|
||||
// For each separate APK per architecture, set a unique version code as described here:
|
||||
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
|
||||
def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86-64": 4]
|
||||
def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4]
|
||||
def abi = output.getFilter(OutputFile.ABI)
|
||||
if (abi != null) { // null for the universal-debug, universal-release variants
|
||||
output.versionCodeOverride =
|
||||
|
||||
Reference in New Issue
Block a user