如何在本地构建Expo APK [英] How to build Expo APK local

查看:116
本文介绍了如何在本地构建Expo APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在本地构建博览会应用程序的APK?

Is it possible to build the APK of an expo app locally?

文档说:

如果您以前从未使用过exp,那么您首先需要使用 exp login 用您的Expo帐户登录.

If you haven’t used exp before, the first thing you’ll need to do is login with your Expo account using exp login.

我尝试了 exp start exp build:android ,但是命令需要登录.

I tried exp start, exp build:android but the commands require a login.

我不想使用EXPO服务器构建APK.有没有办法在本地运行此构建?因此,不需要登录和推送源代码吗?

I don't want to build the APK using expo server. Is there a way to run this build locally? So no login and push of source code required?

如果没有,我可以查看生成的APK的全部源代码吗?

If not, can I view the whole source code of the generated APK?

推荐答案

如果要生成apk,请使用npm run弹出命令弹出CRNA.然后,您将在macupupup中获得android和ios文件夹,在Windows中将获得唯一的android文件夹.并按照

if you want to generate apk eject the CRNA with npm run eject command. Then you will get android and ios folders suppurate in mac and you will get an only android folder in windows. and follow the instruction which is in a given link below

" https://facebook.github.io/react-native/docs/signed-apk-android.html "

这篇关于如何在本地构建Expo APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆