Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Can't configure version 1.1.0 of this library in my android project #20

Open
goemic opened this issue Nov 4, 2019 · 4 comments
Open

Comments

@goemic
Copy link

goemic commented Nov 4, 2019

Hi,

I get include this library properly. When I add the "1.1.0" to my project I get the following error. The version "1.0.0" can be added without this error.

Could not find gradle.plugin.com.flurry:symbol-upload:1.1.0.
Searched in the following locations:
  - https://maven.google.com/gradle/plugin/com/flurry/symbol-upload/1.1.0/symbol-upload-1.1.0.pom
  - https://maven.google.com/gradle/plugin/com/flurry/symbol-upload/1.1.0/symbol-upload-1.1.0.jar
  - https://jcenter.bintray.com/gradle/plugin/com/flurry/symbol-upload/1.1.0/symbol-upload-1.1.0.pom
  - https://jcenter.bintray.com/gradle/plugin/com/flurry/symbol-upload/1.1.0/symbol-upload-1.1.0.jar
  - https://dl.google.com/dl/android/maven2/gradle/plugin/com/flurry/symbol-upload/1.1.0/symbol-upload-1.1.0.pom
  - https://dl.google.com/dl/android/maven2/gradle/plugin/com/flurry/symbol-upload/1.1.0/symbol-upload-1.1.0.jar
  - https://plugins.gradle.org/m2/gradle/plugin/com/flurry/symbol-upload/1.1.0/symbol-upload-1.1.0.pom
  - https://plugins.gradle.org/m2/gradle/plugin/com/flurry/symbol-upload/1.1.0/symbol-upload-1.1.0.jar
  - https://yahoo.bintray.com/maven/gradle/plugin/com/flurry/symbol-upload/1.1.0/symbol-upload-1.1.0.pom
  - https://yahoo.bintray.com/maven/gradle/plugin/com/flurry/symbol-upload/1.1.0/symbol-upload-1.1.0.jar
Required by:
    project:

My root build.gradle file looks like this :

buildscript {
    repositories {
        maven { url 'https://maven.google.com' }
        jcenter()
        google()
        // flurry repositories..
        maven { url "https://plugins.gradle.org/m2/" }
        maven { url "https://yahoo.bintray.com/maven" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.2'
       ...

        classpath "gradle.plugin.com.flurry:symbol-upload:1.1.0"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

Please update your README to ease the setup (there are infos which are out of date -> manual file upload, which is not supported anymore). I still have no idea where I have to add the config you mention in your README:

flurryCrash {
  <configuration>
}
@goemic goemic changed the title Can't configure this library in m android project Can't configure version 1.1.0 of this library in my android project Nov 5, 2019
@goemic
Copy link
Author

goemic commented Nov 5, 2019

When I use the following configuration in my root build.gradle I can access the 1.1.0 version:

buildscript {
    repositories {
        ..
        // flurry repository..
        maven { url "https://yahoo.bintray.com/maven" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.2'
       ...

        classpath 'com.flurry:symbol-upload:1.1.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

At the end of my app level build.gradle file I added the following:
apply plugin:

"com.flurry.android.symbols"
flurryCrash {
    configPath "app/flurry.config"
}

With this configuration I see this warning on every build:

WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
Variant=release UUID={MY_BUILD_UUID..}

Is there a possibility to view the uploaded mapping files in flurry? I just want to make sure everything works properly..

@suriyasundar92
Copy link
Contributor

suriyasundar92 commented Dec 17, 2019

Hi @goemic,
We have updated the plugin and published a new version which fixes the warnings.
Please follow the steps in the following link to use the latest plugin.
https://plugins.gradle.org/plugin/com.flurry.android.symbols
Please note that you have to specify classpath "gradle.plugin.com.flurry:symbol-upload:1.2.0" and not classpath "com.flurry:symbol-upload:1.2.0" in build.gradle.

@goemic
Copy link
Author

goemic commented Dec 23, 2020

Hi @suriyasundar92,

your update introduced a new warning:
WARNING: API 'variant.getMappingFile()' is obsolete and has been replaced with 'variant.getMappingFileProvider()'. It will be removed in version 5.0 of the Android Gradle plugin.

@samsonpaul87
Copy link

samsonpaul87 commented May 10, 2021

Hi @suriyasundar92,

your update introduced a new warning:
WARNING: API 'variant.getMappingFile()' is obsolete and has been replaced with 'variant.getMappingFileProvider()'. It will be removed in version 5.0 of the Android Gradle plugin.

@suriyasundar92, I am also seeing this new warning. Can somebody help me fix the issue?

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

No branches or pull requests

3 participants