繁体   English   中英

您好,我在 android studio 上尝试运行我的第一个应用程序时遇到错误

[英]Hello i am having an error while trying to run my first app on android studio

以下是我的错误信息,我需要帮助

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Beejay\first_app\android\app\build.gradle' line: 24

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.internal.application'.
   > Could not create plugin of type 'AppPlugin'.
      > Could not generate a decorated class for type AppPlugin.
         > com/android/utils/ILogger

我期待在我的模拟器上运行该应用程序

首先,在您的项目中:

  • 打开android/build.gadle文件
  • 搜索com.android.tools.build.gradle ,是这样的:

buildscript {
    ...
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'
        ...
    }
}
  • 将它的版本更改为旧版本

参考这个查看版本, Android Gradle 插件发行说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM