AndroidStudio报错:Plugin with id ‘kotlin-android‘ not found.

  1. 第一步

要在自己的项目的build.gradle的buildscript中添加ext.kotlin_version ='1.3.72'

  • 第二步

然后在dependencies里添加classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

大体如下:

复制代码
buildscript {
    ext.kotlin_version = '1.3.72'
    repositories {
        google()
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}
相关推荐
奔跑中的蜗牛6661 小时前
一次播放器架构升级:Android 直播间 ANR 下降 60%
android
测试工坊3 小时前
Android 视频播放卡顿检测——帧率之外的第二战场
android
Kapaseker5 小时前
一杯美式深入理解 data class
android·kotlin
鹏多多5 小时前
Flutter使用screenshot进行截屏和截长图以及分享保存的全流程指南
android·前端·flutter
Carson带你学Android5 小时前
OpenClaw移动端要来了?Android官宣AI原生支持App Functions
android
黄林晴5 小时前
Android 删了 XML 预览,现在你必须学 Compose 了
android
三少爷的鞋6 小时前
Android 面试系列 | 内存泄露:从"手动配对"到"架构自愈"
android
恋猫de小郭6 小时前
什么 AI 写 Android 最好用?官方做了一个基准测试排名
android·前端·flutter
louisgeek16 小时前
Android MediatorLiveData
android
锋风1 天前
远程服务器运行Android Studio开发aosp源码
android