Unable to build react-native 2 project to phone

后端 未结 2 704
忘掉有多难
忘掉有多难 2021-02-14 04:17

I have my react-naive project completely setup and have been trying to run it to my phone but kep getting the following error when i run the

react-native

相关标签:
2条回答
  • 2021-02-14 04:35

    Required libraries for 64-bit machines:

    If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries:

    $sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
    

    If you are running 64-bit Fedora:

    $sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686
    
    0 讨论(0)
  • 2021-02-14 04:38

    Ah thank you. I just followed this

    sudo dpkg --add-architecture i386
    
    sudo apt-get update
    

    but I got an error said that couldn't found the package. Then I found answer in here . To summarize it , you should add architecture i386 like this

    sudo dpkg --add-architecture i386
    
    sudo apt-get update
    

    this work for me very well.

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