簡體   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