title: Java.lang.NoSuchMethodError: org.json.JSONObject.put
body: <p>I'm developing an Android library, i add my lib in my Test project, now i have a error that can't allow to finish my test:</p>
  
  <pre><code>Could not find method org.json.JSONObject.put, referenced from method com.ldm.JsonBuilder.jsonbuilder
  
  Process: , PID: 31181
  java.lang.NoSuchMethodError: org.json.JSONObject.put
  at com.ldm.JsonBuilder.jsonbuilder(JsonBuilder.java:70)
  at com.ldm.TestConnection.TestNow(TestConnection.java:79)
  at ldm.eisworld.it.test.MainActivity.onCreate(MainActivity.java:23)
  at android.app.Activity.performCreate(Activity.java:5442)
  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2393)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2493)
  at android.app.ActivityThread.access$800(ActivityThread.java:166)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)
  at android.os.Handler.dispatchMessage(Handler.java:102)
  at android.os.Looper.loop(Looper.java:136)
  at android.app.ActivityThread.main(ActivityThread.java:5584)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
  at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>This is my gradle:</p>
  
  <pre><code>dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      compile files('libs/httpcore-4.4.4.jar')
      compile files('libs/json.jar')
      compile 'org.json:json:20141113'
  }
  </code></pre>
  
  <p>And this is a part of my code:</p>
  
  <pre><code>   /* Parsing of hash map */
      for (Map.Entry&lt;String, ArrayList&lt;String&gt;&gt; tr : rh.entrySet()) {
  
          try {
              /* Object that contains URL */
              JSONObject TraceUrl = new JSONObject();
              /* Object that contains nodes for each URL */
              JSONObject TraceNodes = new JSONObject();
  
              TraceUrl.put("url", tr.getKey());
              TraceUrl.put("nodes", tr.getValue());
              trace.put(TraceUrl);
          } catch (JSONException e) {
              System.out.println("Exception: " + e.toString());
          }
  </code></pre>
  
  <p>How i can resolve it ?</p>