gradle-wrapper-properties not found
时间: 2023-08-11 20:05:21 浏览: 251
The `gradle-wrapper.properties` file is typically located in the `gradle/wrapper` directory of your project. If you're getting an error that the file is not found, it's possible that it may have been deleted or moved by mistake.
To resolve this issue, you can try one of the following solutions:
1. Check if the `gradle-wrapper.properties` file exists in the `gradle/wrapper` directory. If it doesn't, you can create a new one by running the following command in the terminal at the root of your project:
```
./gradlew wrapper --gradle-version <version>
```
Replace `<version>` with the version of Gradle you want to use.
2. If the file exists but you're still getting an error, try deleting the `gradle/wrapper` directory and re-running the `./gradlew wrapper` command to generate a new wrapper.
3. If you're using a build tool like IntelliJ IDEA or Android Studio, try refreshing your project or syncing your Gradle files to see if that resolves the issue.
I hope one of these solutions helps you resolve the issue!
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)