Android:在根项目“MyProject"中找不到项目“MyProject" [英] Android: Project 'MyProject' not found in root project 'MyProject'

查看:43
本文介绍了Android:在根项目“MyProject"中找不到项目“MyProject"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用 Android Studio,我正在尝试进行重建,但出现以下错误.

I'm currently using Android Studio and I'm trying to do a rebuild but I get the following error.

Gradle: 
FAILURE: Build failed with an exception.

* What went wrong:
Project 'MyProject' not found in root project 'MyProject'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

我会尝试尝试:使用 --stacktrace 运行";但是,我不确定如何做到这一点.谁能帮我解决这个问题?谢谢!

I would attempt the "Try: run with --stacktrace" but, I'm unsure how to do this. Can anyone help my troubleshoot this problem? Thanks!

推荐答案

删除项目根文件夹中的 .gradle 文件夹并从 Android Studio 重新同步 gradle.

Delete .gradle folder in your project's root folder and resync gradle from Android Studio.

这篇关于Android:在根项目“MyProject"中找不到项目“MyProject"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆