【问题标题】:Android instant apps feature plugin not found未找到 Android 即时应用功能插件
【发布时间】:2017-06-05 11:23:30
【问题描述】:

Gradle 同步失败:未找到 ID 为“com.android.feature”的插件。

请帮助我解决问题。我已经关注了关于即时应用程序环境设置的谷歌文档。请在此处查看设置指南:Set up your environment for Instant Apps

【问题讨论】:

    标签: android android-instant-apps


    【解决方案1】:

    您必须在 build.gradle 文件中更新 android gradle 插件:

    dependencies{
            classpath 'com.android.tools.build:gradle:3.0.0-alpha4'
    }
    

    它会起作用的

    【讨论】:

      【解决方案2】:

      试试这个..更改为

      dependencies {
          classpath 'com.android.tools.build:gradle:2.3.3'
      
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
      

      如果你使用的是稳定的安卓工作室

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-10-16
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-08-19
        • 2020-08-16
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多