23

私は現在 Android Studio を使用しており、再構築しようとしていますが、次のエラーが発生します。

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 で実行」を試みますが、これを行う方法がわかりません。この問題のトラブルシューティングを手伝ってくれる人はいますか? ありがとう!

4

6 に答える 6

9

Windows を使用していると仮定command promptして、プロジェクト ルートを開いて移動し、実行gradlew buildしてエラーの詳細を確認します。

cd \androidstudio\MyProject
gradlew build

またはスタックトレースを実行します

gradlew build --stacktrace

重複した回答 は、Android Studio: Where is the Compiler Error Output Window? にあります。

于 2013-05-25T20:57:51.460 に答える