Comments (10)
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.
Sorry, I do not have the time right now. But I will look into this in a few days.
from williamchart.
@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
- 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.
- 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.
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.
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.
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.
I updated the wiki with your solution @johnjohndoe
from williamchart.
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.
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.
@diogobernardino Please update also the wiki. Thanks!
from williamchart.
Related Issues (20)
- Set chart_smoothLine to true leads chart to draw weird negative hooks
- Set decimals of Y-Axis values HOT 1
- Setting custom point drawable only for specific points HOT 2
- Provide a way to let tooltips draw values HOT 1
- Stack bar charts HOT 1
- It is posible to add a stroke with a specific color on touch/click event? HOT 1
- Animation not working using proGuard HOT 1
- Move repository Jcenter to mavenCentral() HOT 2
- Crashlytics Error: BarChartView.kt line 78 com.db.williamchart.view.BarChartView.drawBars
- How to set up Y axis right? HOT 1
- Grid not fitting the points (squeezed)
- Is it possible to add a small button to show value on line touched?
- crash on tooltip onDataPointTouch HOT 1
- BarChart crashing when changing data on runtime HOT 1
- Function to clear the chart
- No documentation found!!! HOT 2
- Don't have Zoom in feature
- Failed to resolve: williamchart:williamchart:unspecified HOT 3
- Colors provided do not match the number of datapoints HOT 1
- Center Aligned Graph Draw
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from williamchart.