gradle - React Native gradlew clean 命令不起作用

标签 gradle android-gradle-plugin react-native

我刚刚格式化了我的电脑并重新安装了用于 React Native 的环境。

在我构建了一个空项目之后出现了奇怪的错误。 比起我尝试在 android 文件夹中运行 gradlew clean,甚至这段代码也不起作用。

enter image description here

最佳答案

you must first go to android directory by:

cd android

then use this command:

./gradlew clean

enter image description here

for running again , back to previous directory with:

cd ..

and again there use this:

react-native run-android

关于gradle - React Native gradlew clean 命令不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60224090/

相关文章:

java - Android Gradle 错误

android - 如何在gradle构建脚本中预生成sqlite数据库

node.js - 从 jenkins 运行时出现 NPM 问题

android - Android Studio更新后:未找到Gradle DSL方法: 'runProguard()'

Gradle 构建失败 : Couldn't find outer class

image - 使用 AWS Amplify 从 React Native 上传到 S3

node.js - React Native - 运行 "npm start"和 "react-native run-android"时出错

android-studio - 终端中的build.gradle文件错误

android - 使用本地库而不是 nexus 一

css - React Native Flexbox 中的两列网格