简体   繁体   English

找不到 ID 为“com.android.feature”的插件。 Android

[英]Plugin with id 'com.android.feature' not found. Android

this might be a duplicate question but I'm seriously stuck trying to create an instant app using a new project.这可能是一个重复的问题,但我一直在尝试使用新项目创建即时应用程序。

Requirements for instant app in build.gradle file: build.gradle 文件中免安装应用的要求:

  1. apply plugin: 'com.android.feature'应用插件: 'com.android.feature'
  2. baseFeature = true基础特征 = 真
  3. remove = applicationId "com.example.instantapptest" remove = applicationId "com.example.instantapptest"

The problem occur "Plugin with id 'com.android.feature' not found."出现问题“找不到 ID 为‘com.android.feature’的插件”。

Error Msg错误信息

错误信息

SDK installed SDK 已安装

安装SDK

these are my findings this and this , below is what I have and error still persist:这些是我的发现thisthis ,下面是我所拥有的,错误仍然存在:

Classpath =类路径 =

classpath "com.android.tools.build:gradle:4.0.2"

my all projects =我所有的项目 =

allprojects {
repositories {

    jcenter()
    google()
   }
}

Much help appreciated:)非常感谢:)

kindly refer to this请参考这个

old plugin: com.android.feature旧插件: com.android.feature

changed to变成

new plugin: com.android.dynamic-feature新插件: com.android.dynamic-feature

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

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