0

I use the achartengine libs and downloaded the achartengine-1.0.0.jar from google. I imported the library into my code and recognized that I can ONLY read it but I'd like to apply some patches. How can I make a library editable?

I use Android Studio.

Megaetron
  • 1,154
  • 2
  • 15
  • 29
  • possible duplicate of [How to build the achartengine library after modification?](http://stackoverflow.com/questions/25463308/how-to-build-the-achartengine-library-after-modification) – Dan D. Aug 24 '14 at 19:06

2 Answers2

0

In the jar-File are only the compiled .class-Files, no .java-Files.

If you want to edit or patch, you need the src-.java-Files. Here you can check out the SVN-Project:

https://code.google.com/p/achartengine/source/checkout

Here you can see the files, which you would need, if you want to edit the library:

https://code.google.com/p/achartengine/source/browse/#svn%2Ftrunk%2Fachartengine%2Fsrc%2Forg%2Fachartengine%253Fstate%253Dclosed

Malte
  • 1,937
  • 1
  • 15
  • 20
  • Yes, I downloaded the whole SVN-Project and then patch it, now I have to create a jar-File again but how? – Megaetron Aug 24 '14 at 17:15
  • Why you do not just put the source files into your project? Then you can patch whenever you want and you will not be forced to get the source files from that `.jar` again. Anyway if you want to create a jar: http://docs.oracle.com/javase/tutorial/deployment/jar/build.html – Malte Aug 24 '14 at 19:15
  • OMG You are a GENIUS. Thank You! You were the first person who helped me friendly. Thank You! – Megaetron Aug 24 '14 at 19:28
0

Most Android Libraries have a pom.xml file which means that it should be built by maven. Install it, and navigate to the directory containing that file. Then mvn install. Reading the output, you will see where the artifacts(the jar) is stored.

No_name
  • 2,732
  • 3
  • 32
  • 48