How do I prepare my app for the 64 bit version for React Native?

前端 未结 2 1327
猫巷女王i
猫巷女王i 2021-01-03 00:04

Here is my build.gradle:

    apply plugin: \"com.android.application\"

import com.android.build.OutputFile

/**
 * The react.gradle file re         


        
2条回答
  •  耶瑟儿~
    2021-01-03 00:41

    you are almost there remove ndk,

    ndk {
        abiFilters 'armeabi-v7a' , 'x86'
    } // these are not necessary it won't affect anything
    

    then add in abi -> include

    abi{
       ...
       include "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
    }
    

    last add versionCodes,

    def versionCodes = ["x86":1,"x86_64":2,"armeabi-v7a":3,"arm64-v8a":4]
    

提交回复
热议问题