Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot resolve symbol AndroidDevMetrics #29

Open
feresr opened this issue Sep 15, 2016 · 2 comments
Open

Cannot resolve symbol AndroidDevMetrics #29

feresr opened this issue Sep 15, 2016 · 2 comments

Comments

@feresr
Copy link

feresr commented Sep 15, 2016

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?

@dpproduction
Copy link

dpproduction commented Feb 17, 2017

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

@newstrong
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants