错误:(9,0)找不到ID为'android'的插件

内纳德·扬科维奇(Nenad Jankovic)

我做了所有论坛上解释的所有事情,但仍然遇到相同的错误。我做了这里描述的所有事情http://tools.android.com/tech-docs/new-build-system/migrating-from-eclipse-专案

这是我在build.gradle中的代码

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        'com.android.tools.build:gradle:1.0.0-rc4'
    }
}
apply plugin: 'android'

android {

    compileSdkVersion 18
    buildToolsVersion "21.1.1"

    buildTypes { release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'),
                'proguard-rules.txt' } }

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
        }

        // Move the tests to tests/java, tests/res, etc...
        instrumentTest.setRoot('tests')

        // Move the build types to build-types/<type>
        // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
        // This moves them out of them default location under src/<type>/... which would
        // conflict with src/ being used by the main source set.
        // Adding new build types or product flavors should be accompanied
        // by a similar customization.
        debug.setRoot('build-types/debug')
        release.setRoot('build-types/release')
    }
}

我究竟做错了什么?

李俊勋

尝试更改'com.android.tools.build:gradle:1.0.0-rc4''com.android.tools.build:gradle:1.0.0'at依赖项。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Android Studio错误:(3,0)找不到ID为'com.android.application'的插件

Android Studio错误:(8,0)找不到ID为'android'的插件

错误:(2,0)找不到ID为'com.github.dcendents.android-maven'的插件

找不到ID为“ android”的Cordova插件

导入项目并迁移到Gradle:错误:(1,0)找不到ID为'com.android.application'的插件

Android Studio中的Gradle错误:找不到ID为'com.android.library'的插件

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

错误:找不到ID为'com.github.dcendents.android-maven'的插件

Android插件1.3错误

试图将模块添加到项目中。找不到ID为'kotlin-android'的插件

Gradle同步失败:找不到ID为'com.google.android.gms:play-services'的插件

离子生成找不到模块错误。如何导入Android插件?

找不到 Unity Android 插件活动

Android Studio最新插件未找到ID为“ crashlytics”的插件

Android 9上的Flutter WebView插件错误

Android studio kotlin 插件错误

Eclipse Android插件问题“错误:找不到与给定名称匹配的资源(在“主题”处,值为“ @ style / AppTheme”)”

找不到ID为`kotlin`的插件

找不到ID为'gwt'的插件

Gradle:找不到ID为appengine的插件

maven android插件:找不到Android SDK路径

如何修复在Android Studio中找不到的Android插件

错误:已应用“ java”插件,但与Android插件不兼容

插件Android支持中的异常“找不到图标”

在Android Studio中找不到“ Google Sceneform Tools(Beta)”插件

在Android Studio 3.5中找不到任何插件市场

Android Studio:未找到ID为“ android-library”的插件

Android Studio中的Kotlin插件错误

Android Gradle 插件错误:无法解析变量