久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Android Studio - 無法應用插件 [id 'com.android.appl

Android Studio - Failed to apply plugin [id #39;com.android.application#39;](Android Studio - 無法應用插件 [id com.android.application])
本文介紹了Android Studio - 無法應用插件 [id 'com.android.application']的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在開發一個應用程序.在我的應用程序中,代碼沒有錯誤,但是當我嘗試運行我的項目時,它會出現以下錯誤.

I am working on an app. In my app there is no error in code but when I try to run my project it gives following errors.

錯誤:(1, 1) 評估項目 ':app' 時出現問題.

Error:(1, 1) A problem occurred evaluating project ':app'.

無法應用插件 [id 'com.android.application']

Failed to apply plugin [id 'com.android.application']

無法創建AppPlugin"類型的插件.

Could not create plugin of type 'AppPlugin'.

我也試試這個 Gradle發出錯誤無法創建AppPlugin"類型的插件"

這也是 Android Studio 中的 Gradle 錯誤

以下是我的 build.gradle 文件

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {

    compileSdkVersion 23
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.praval.healthfreak"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'

    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.google.android.gms:play-services:8.3.0'
    compile 'de.hdodenhof:circleimageview:1.3.0'
    compile 'com.android.support:design:23.2.1'
    compile files('libs/YouTubeAndroidPlayerApi.jar')

}

推薦答案

2020 年 6 月 24 日更新

您需要更新到最新的 gradle 版本來解決這個問題.

You need to update to the latest gradle version to solve this issue.

請確保您使用的是最新的 Android Studio

Please make sure you are on the latest Android Studio

然后通過更新這個依賴來更新你的項目級別build.gradle

and then update your project level build.gradle by updating this dependency

buildscript {
    repositories {
        google()
        jcenter() 
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.0'
    }
}

它可能會顯示一個彈出窗口詢問您是否允許更新 gradle,請更新它會自動下載最新的發行版,問題將得到解決.

It might show a popup asking your permission to update gradle, please update and it will download the latest distribution automatically and the issue will be resolved.

否則你可以

從此處獲取最新的 Gradle 5.6.4 并添加手動的

Get Latest Gradle 5.6.4 from here and Add it manually

如果您不想手動下載:

打開你的項目>畢業>包裝器>gradle-wrapper.properties 并替換

distributionUrl=https://services.gradle.org/distributions/gradle-version-number-all.zip

distributionUrl=https://services.gradle.org/distributions/gradle-6.1.1-all.zip

重建項目或再次運行 gradle sync.

Rebuild the project or just run gradle sync again.

這篇關于Android Studio - 無法應用插件 [id 'com.android.application']的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現 IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當前風味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復“意外元素lt;查詢gt;在“清單中找到錯誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風味庫的多風味應用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運行時有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 五月综合激情在线 | 精品国产一区二区三区久久久蜜月 | 91成人在线| 婷婷去俺也去 | 视频精品一区二区三区 | 免费一看一级毛片 | 黑人粗黑大躁护士 | 日韩视频高清 | 免费xxxx大片国产在线 | 国产成人精品一区二区三区 | 国产一区二区不卡 | 欧美aⅴ | 国产欧美精品一区二区 | 久久91精品久久久久久9鸭 | 亚洲福利在线观看 | 久久久久久成人网 | 欧美中文字幕一区二区三区亚洲 | 亚洲欧美一区二区三区国产精品 | jⅰzz亚洲| 看一级毛片视频 | 久色一区 | 理论片免费在线观看 | 韩日在线视频 | 精品二区 | 国产精品成人一区二区三区 | 日本在线中文 | 视频二区在线观看 | 亚洲成av| 国产精品特级毛片一区二区三区 | 精品一区二区三区在线观看 | 亚洲三区视频 | 视频1区 | 日韩在线欧美 | 欧美久久国产 | 成人精品一区二区三区四区 | 亚洲午夜网 | 国产精品一区二区三区99 | 欧美日韩国产在线观看 | 亚洲高清视频在线观看 | 久草电影网 | 日日日日操 |