Error:(1, 0) Plugin with id 'com.android.application' not found when doing project sync

Asked

Viewed 1,220 times

0

    apply plugin: 'com.android.application'

    android {
    compileSdkVersion 24
    buildToolsVersion "24.0.0"

    defaultConfig {
        applicationId "app.teste"
        minSdkVersion 15
        targetSdkVersion 24
        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:24.0.0'
    compile 'com.android.support:design:24.0.0'
    compile 'com.android.support:support-v4:24.0.+'
    compile'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'

}

Guys I’m trying to sync on my project and this error is showing:
Error:(1, 0) Plugin with id 'com.android.application' not found. Open File

Can someone please help me.

  • @Pablo Almeida, I think the tag android-studio should be maintained.

  • 1

    @All right. Let’s keep until we understand better the problem.

1 answer

0


You need to check your root build.Radle, which is outside the /app folder.

It has to be that way:

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

allprojects {
    repositories {
        jcenter()
    }
}

If it doesn’t work, post this file instead of the build.Radle you posted.

  • Where this file is ?

  • It stays out of all directories, the one you posted is inside the directory /app, of a check outside the directories.

  • Settings.Gradle ?

  • It’s the same name, build.Gradle also, but you can notice that one is referring to the module /app and the other relates to project, you need to check this project

  • I thought, thank you very much.

  • Managed to solve the problem?

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.