简体   繁体   English

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

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

Below is my error message please i need help以下是我的错误信息,我需要帮助

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

i was expecting to have the app run on my emulator我期待在我的模拟器上运行该应用程序

First, in your project:首先,在您的项目中:

  • Open android/build.gadle file打开android/build.gadle文件
  • Search for com.android.tools.build.gradle , it's something like this:搜索com.android.tools.build.gradle ,是这样的:

buildscript {
    ...
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'
        ...
    }
}
  • change the version of it to an older version将它的版本更改为旧版本

Refer to this to see versions, Android Gradle plugin release notes参考这个查看版本, Android Gradle 插件发行说明

暂无
暂无

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

相关问题 尝试在 Android Studio 中运行我的应用程序时出现随机错误 - Random error while trying to run my app in Android Studio 我正在尝试在 android studio 中运行 AR 应用程序,但是在添加片段时出现错误“缺少约束和未知片段” - I am trying to run AR app in android studio but, while adding fragment i am getting error "missing constraint and unknown fragment" 运行我的应用程序时,我在android studio中收到此错误 - I am getting this error in android studio while running my app 在 android studio 中运行代码时出现错误 - I am having an error when run code in android studio Android studio 当我尝试运行一个简单的应用程序时它没有运行 - Android studio when i am trying to run a simple app it is not runnig 不幸, <your app> 已停止,而我正在尝试在我的android模拟器中运行它。 如何解决呢? - unfortunately, <your app> has stopped while i am trying it run it in my android emulator. how to solve this? 尝试运行时我的第一个 flutter 应用程序出错 - Getting error in my first flutter app while trying to run 我在使用 android studio 构建我的第一个 flutter 应用程序时遇到问题,几乎没有错误有人可以帮助我吗? - I am having issue building my first flutter app with android studio getting few errors can someone help me? 尝试在Android Studio中运行应用时找不到资源标识符错误 - No resource identifier found error while trying to run app in android studio 尝试在Android Studio上运行我的项目时出现错误 - Getting an error while trying to run my project on android studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM