AndroidDevMetrics icon indicating copy to clipboard operation
AndroidDevMetrics copied to clipboard

Cannot resolve symbol AndroidDevMetrics

Open feresr opened this issue 7 years ago • 2 comments

Even though I'm able to sync dependencies without errors, android studio still can't find the AndroidDevMetrics.class I tried a clean build and even invalidated my cache and restarted AS, no luck. Here's how I set up AndroidDevMetrics:

build.gradle (module)

apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'realm-android'
apply plugin: 'com.frogermcs.androiddevmetrics'

android {
    compileSdkVersion 24
    buildToolsVersion "24.0.2"

    defaultConfig {

build.gradle (project)

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.2'
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
        classpath "io.realm:realm-gradle-plugin:1.2.0"
        classpath 'com.google.gms:google-services:3.0.0'
        classpath 'com.frogermcs.androiddevmetrics:androiddevmetrics-plugin:0.4'

Any clue what might be going on?

feresr avatar Sep 15 '16 07:09 feresr

I think the reason is your build variant. It doesn't work on custom build configs. Try to use debug build variant.

dpproduction avatar Feb 17 '17 11:02 dpproduction

If i use custom build type ,it don’t work.Please tell me why?

newstrong avatar Feb 24 '17 07:02 newstrong