Reputation: 604
Before you ask, I already have the last version of Android Studio (0.5.8).
This is the problem:
What I did to import the library was:
I already checked that it's in the build.gradle:
I can use it programmatically getting no errors: not compilation errors nor runtime errors. And if I delete Android Plot's custom attributes, the error disappears, but when the Activity loads, the XYPlot isn't there.
What am I missing?
Upvotes: 1
Views: 1680
Reputation: 21
Even I faced the same problem then after googling for long time Finally got the below dependency
By adding the following dependency in the app build.gradle file
"implementation 'com.androidplot:androidplot-core:0.6.1'"
Upvotes: 1
Reputation: 6605
I don't think Android Studio has the ability to to this. Anyway, I have never been able to get it working on any custom elements. I have already used different custom elements in the layout files, but none of them did actually work so far in Android Studio. So I don't think the problem is the plot element you are using.
In most cases, I just test it in a simulator or on a real device. So I am absolutely sure it works. I know it's a little stupid you can't test your layout in de Android Studio directly, but it works for me.
Upvotes: 0