我是反应本机开发的新手,我面临着这个错误。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)