question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin with id 'com.getkeepsafe.dexcount' not found

See original GitHub issue

Just try to implement Dexcount plugin within my project, but for some reason is not working and I get the following error (details are below):

Plugin with id ‘com.getkeepsafe.dexcount’ not found

Code

apply plugin: 'com.android.application'
apply plugin: 'com.getkeepsafe.dexcount'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.0"
    defaultConfig {
        applicationId "com.packagename.customtoolbarwithsupportlibrary"
        minSdkVersion 21
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.7.3'
    compile 'com.android.support:appcompat-v7:25.0.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    testCompile 'junit:junit:4.12'
}

screen shot 2017-07-30 at 20 22 37

screen shot 2017-07-30 at 20 15 20

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
benjamin-badercommented, Jul 31, 2017

This error is entirely unrelated to dexcount. At this point, I’d suggest taking your questions to stackoverflow.com.

1reaction
macaronlovercommented, Jul 31, 2017

After doing that I still get an error:

Error:Cause: buildToolsVersion is not specified

apply plugin: 'com.android.application'
apply plugin: 'com.getkeepsafe.dexcount'

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

        classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.7.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

screen shot 2017-07-31 at 12 18 23

Read more comments on GitHub >

github_iconTop Results From Across the Web

com.getkeepsafe.dexcount - Gradle Plugin Portal
Created 25 January 2022. A Gradle plugin for counting methods in an .apk. Other versions.
Read more >
Android Gradle dexcount-gradle-plugin - Stack Overflow
android plugin is already applied but I changed the line of "apply plugin: 'com.android.application'" with "apply plugin: 'com.getkeepsafe.dexcount'" and it's ...
Read more >
Dexcount Gradle Plugin
A Gradle plugin to report the number of method references in your APK, AAR, or java module on every build. This helps you...
Read more >
Dexcount Gradle Plugin - Maven Repository
A Gradle plugin for counting methods in an .apk. License, Apache 2.0. Tags, pluginbuildbuild-systemgradlegroovy. Ranking, #162020 in MvnRepository (See Top ...
Read more >
Migration guide 3.0.0 does not say what to do about outputFile ...
Please take a look this piece of code taken from the Dexcount Gradle Plugin: https://github.com/KeepSafe/dexcount-gradle-plugin/blob/master/src/main/groovy/com/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found