title: I can't connect my Android App with neo4j database
body: <p>I'm programming an app in Android but I can´t connect it to a local neo4j database. </p>
  
  <p>In the gradle I've put this dependencies: </p>
  
  <pre><code>compile 'org.neo4j.driver:neo4j-java-driver:1.4.1'
  compile 'org.neo4j:neo4j-jdbc:3.1.0'
  </code></pre>
  
  <p>The connection code is the following: </p>
  
  <pre><code>import org.neo4j.driver.v1.Driver;
  import org.neo4j.driver.v1.GraphDatabase;
  import org.neo4j.driver.v1.Session;
  import org.neo4j.driver.v1.StatementResult;
  import static org.neo4j.driver.v1.Values.parameters;
  
  
  public class ConsultasBD {
      @TargetApi(Build.VERSION_CODES.KITKAT)
      public static boolean consultaLogin(String u, String p) {
          try {
              // Connect
              Driver driver = GraphDatabase.driver( "bolt://192.168.0.39:7474");
              Session session = driver.session();
              // Querying
              StatementResult result = session.run( "MATCH (a:Person {usr: {name}, Pass: {pass}})",
                      parameters( u, p ) );
  
              while ( result.hasNext() )
              {
                  System.out.println("OK");
              }
  
              session.close();
              driver.close();
  
          } catch (Exception ex) {
              ex.printStackTrace();
              return false;
          }
          return true;
      }
  }
  </code></pre>
  
  <p>But when I run it, I get this exception:</p>
  
  <p><em>java.lang.NoClassDefFoundError: 
  Failed resolution of: Ljava/net/StandardSocketOptions;</em></p>
  
  <p>And I don't know how can I fix it. </p>
  
  <p>Can anyone explain me how can I connect my app with neo4j?</p>
  
  <p>Thank you very much. </p>
  
  <p>Miguel</p>