小编Muh*_*ved的帖子

无法读取脚本react.gradle,因为它不存在

我是反应本机开发的新手,我面临着这个错误。react.gradle does not exist

我想从 android 运行并制作 apk,然后我想上传到 Google Play 商店。我无法理解为什么会发生这个错误,尽管我已经在 macOS 上安装了 npm 但错误仍然出现。提前致谢



apply plugin: "com.android.application"

import com.android.build.OutputFile

/**
 * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
 * and bundleReleaseJsAndAssets).
 * These basically call `react-native bundle` with the correct arguments during the Android build
 * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
 * bundle directly from the development server. Below you can see …
Run Code Online (Sandbox Code Playgroud)

gradle apk android-studio react-native

6
推荐指数
1
解决办法
3600
查看次数

标签 统计

android-studio ×1

apk ×1

gradle ×1

react-native ×1