我不确定如何创建应用程序,但我不知道如何使用谷歌应用程序store 发布.

Error 1

读完这篇doc页.

; exp build:android
[exp] Making sure project is set up correctly...
/[exp] Warning: Not using the Expo fork of react-native. See https://docs.expo.io/.
\[exp] Warning: 'react-native' peer depencency missing. Run `npm ls` in /var/www/html/test/testme/osmosis-seek-android to see full warning.
[exp] 
[exp] If there is an issue running your project, please run `npm install` in /var/www/html/test/testme/osmosis-seek-android and restart.
[exp] Your project looks good!
[exp] Checking if current build exists...

[exp] No currently active or previous builds for this project.

? Would you like to upload a keystore or have us generate one for you?
If you don't know what this means, let us handle it! :)
 false
[exp] Starting build process...
[exp] Publishing...
[exp] Published
[exp] Your URL is

https://exp.host/@kenpeter/osmosis-seek-android

[exp] Building...
[exp] Must specify a java package in order to build this experience for Android. Please specify one in app.json at "expo.android.package"

推荐答案

使用create-react-native-app创建的项目有两条通往Google Playstore 的路径.

Use the Expo exp build command

一种方法是使用Expo(我参与的一个项目)exp命令行工具来构建APK.exp命令行工具(和XDE GUI程序)可以加载使用CRNA创建的项目.设置好后,您可以运行exp build:android并在几分钟内收到APK.

无论你第一次需要添加多少APK或app.json信息.具体来说,您需要像这样指定Java包名称(重要的是,它是一个有效的Java包名称!):

{
   android: {
       package: "com.example.myapp"
   }
}

以下是关于构建APK(以及iOS的IPA)的文档:https://docs.expo.io/versions/latest/guides/building-standalone-apps.html

手动弹出并构建APK

另一种方法是使用CRNA的eject命令,它可以为您创建Xcode和Android项目文件.然后你会创建一个APK并将其提交到Play Store,就像其他任何React原生Android应用一样.这种方法的一个缺点是,在你退出CRNA后,你不能使用CRNA的工具,而且它也不会为你将来的升级提供帮助.

React-native相关问答推荐

如何在renderItem中显示每个项目的索引号,保持分页的前一个下一个按钮

在 React Native 中,水平滚动不适用于我的整个应用程序

自定义单选按钮在react native 中不起作用

我应该什么时候调用 realm.close()?

Error: Invariant Violation: Touchable child must either be native or forward setNativeProps to a native component stack

React native flexbox - 如何做 percentages || columns || responsive || grid etc

react-native (expo)加载markdown 文件

React Native StackNavigator 初始路由名称

如何以编程方式在 react-native 中截屏

修复错误:路由 'Home' 的组件必须是 React 组件

eslint Parsing error: Unexpected token =

如何删除不需要的expo 模块

渲染时获取未定义不是 React Native 中的对象

ScrollView bounce的 2 种不同背景 colored颜色

react-native run-android 构建错误':app:generateDebugBuildConfig'

在 react-native 中设置动态 'initialRouteName'

React Navigation 中的选项卡导航器图标

按钮的标题属性必须是字符串

更改导航标题背景 colored颜色

无法运行 jetifier React Native