java - 在 android studio 上创建我的第一个 HelloWorld 应用程序时出现问题

标签 java android gradle

这些是我收到的错误;

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\AndyKhayaMhlanga\.gradle\daemon\helloWorld3\app\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Could not create plugin of type 'AppPlugin'.
      > com/android/ide/common/blame/MessageReceiver

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

* Get more help at https://help.gradle.org

CONFIGURE FAILED in 9s
ERROR: Unable to load class 'com.android.ide.common.blame.MessageReceiver'.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)

The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)

Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

最佳答案

您可以尝试它建议的一些操作。我将再次开始同步 Gradle:在 Android Studio 中,执行 File -> Sync Project with Gradle Files

这将确保下载所有依赖项。

关于java - 在 android studio 上创建我的第一个 HelloWorld 应用程序时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54952924/

相关文章:

java - 是否可以使用十进制数(例如 double)来定位 JLabel?

gradle - 如果它包含多个项目,则找不到一种简单的方法来列出 gradle 项目的所有依赖项

android-studio - Android Studio:不支持文字下划线错误

gradle - grails-无法使用Gradle发行版 'https://services.gradle.org/distributions/gradle-3.4.1-bin.zip'执行构建

java - 使用 iText 计算 PDF 上的附件数量

java - 我在 cmd 上收到错误,即 build.xml 不存在

java - 在结果集中使用 getter

android - Firebase Cloud Functions是否在Android的主线程之外运行?

android - 如何使用 CPU 在深度 sleep 模式下执行任何操作

android - 无效的资源目录名称,drawable-anydpi-v21