Git Product home page Git Product logo

Comments (10)

diogobernardino avatar diogobernardino commented on July 16, 2024

Can't really help you with that, @johnjohndoe was the one contributing with those gradle scripts. Perhaps you can check closed issues on that matter.

from williamchart.

johnjohndoe avatar johnjohndoe commented on July 16, 2024

Sorry, I do not have the time right now. But I will look into this in a few days.

from williamchart.

johnjohndoe avatar johnjohndoe commented on July 16, 2024

@hyperh Today I found time to investigate in the error you reported. The problem is caused because @diogobernardino added a new Gradle script to deploy to Maven Central. This seems to conflict with the install task which deploys the library to your local Maven repository.

Possible problem workarounds

  1. The quick solution is to temporarily comment out the referenced line in the build script. The author is the only one anyways who will deploy the library to Maven Central.
  2. If you are a user of the library not a developer then you have the other option to just use what is available on Maven Central. Once downloaded your local Gradle cache will hold the artifact to enable offline work.

from williamchart.

hyperh avatar hyperh commented on July 16, 2024

I'm probably going to be only a user of the library for now. I tried to import from Mavel Central but I got this: (edit: corrected the gradle file to the proper com.diogobernardino.williamchart:library:1.7.0, but still get this error)

Error:(25, 13) Failed to resolve: com.diogobernardino.williamchart:library:1.7.0

Here's my new build.gradle (app)

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.myapp.myapp"
        minSdkVersion 15
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile 'com.doomonafireball.betterpickers:library:1.5.3'
    compile 'com.diogobernardino.williamchart:library:1.7.0'
}

Here's my new build.gradle (Project)

// Top-level build file where you can add configuration options common to all sub-projects/modules.

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

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

allprojects {
    repositories {
        jcenter()
        mavenCentral()
    }
}

from williamchart.

johnjohndoe avatar johnjohndoe commented on July 16, 2024

For some reason @diogobernardino changed the package name of the library as you can see on Maven Central.

compile 'com.db.williamchart:library:1.7.0'

vs.

compile 'com.diogobernardino:williamchart:1.7.0'

from williamchart.

hyperh avatar hyperh commented on July 16, 2024

Ok that works! Thanks so much for the help! I'm pretty new to this Gradle and Maven stuff, so I didn't really notice that small change.

from williamchart.

hyperh avatar hyperh commented on July 16, 2024

I updated the wiki with your solution @johnjohndoe

from williamchart.

johnjohndoe avatar johnjohndoe commented on July 16, 2024

You are welcome. Although changing the package name is a major change which should clearly be stated by @diogobernardino. - I updated the wiki page.

from williamchart.

diogobernardino avatar diogobernardino commented on July 16, 2024

The package name change seemed obviously necessary and indeed I was planning to add it to the wiki, my bad. Thank you guys.

from williamchart.

a-mi-go avatar a-mi-go commented on July 16, 2024

@diogobernardino Please update also the wiki. Thanks!

from williamchart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.