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

前端 未结 2 1315
猫巷女王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]
    
    0 讨论(0)
  • 2021-01-03 00:54

    React Native 0.59 fully supports 64-bit Android builds, it already has the needed changes for the Gradle scripts, so there is no need to search for what exactly should one add.

    If you have the possibility to upgrade RN in your project, might just do that using great rn-diff-purge and the helper around it. But keep in mind that some other dependencies might also need to be upgraded to newer versions supporting RN 0.59.

    0 讨论(0)
提交回复
热议问题