我目前正在使用
Android Studio,我正在尝试重建,但是我收到以下错误.
Gradle: FAILURE: Build Failed with an exception. * What went wrong: Project 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运行”但是,我不确定如何做到这一点.任何人都可以帮助我解决这个问题吗?谢谢!
解决方法
假设您使用Windows,打开命令提示符并导航到项目根目录并运行gradlew构建以更详细地查看错误
cd \androidstudio\MyProject gradlew build
或运行stacktrace
gradlew build --stacktrace
可在此处找到重复的答案
Android Studio: Where is the Compiler Error Output Window?