linux - 由于 Ubuntu 中缺少 .env 文件,Android 应用程序无法在模拟器中安装
问题描述
克隆并安装存储库后,运行npx react-native run-android
返回错误
Configure project :app
Reading env from: .env
**************************
*** Missing .env file ****
**************************
FAILURE: Build completed with 1 failure.
1: Task failed with an exception.
-----------
* Where:
Build file '/home/test/android/app/build.gradle' line: 134
* What went wrong:
A problem occurred evaluating project ':app'.
> Build Config field cannot have a null parameter
在第 134 行,没有任何内容表明构建配置字段。我认为这是我本地设置的问题。我已经检查过我有所有的 android 包并且我的路径是正确的。任何帮助,将不胜感激!
解决方案
推荐阅读
- php - Git pull via PHP shell_exec() 可以在 SSH shell 中工作,但不能在 web 浏览器中工作
- pine-script - strategy.entry 不反转打开的相反头寸...请帮助
- ios - 没有服务器的 iOS 订阅促销优惠
- python - 从数据框中分组多个日期
- google-apps-script - 从调制解调器或外部网站获取 IPv4 地址
- python - 导入变形金刚包抛出 value_error
- json - 使用 FETCH 获取 JSON 解析错误,但在使用 PostMan 时没有
- moodle - Moodle 3.7 中的密码哈希生成算法
- java - 数组中的 ItemList Android Studio
- shell - 优雅地关闭 Apache Ignite