简体   繁体   English

在Android上使用Neo4j的问题

[英]Issues using Neo4j with Android

I've ran into a couple of issues when trying to link up the Neo4j server running locally to my android device. 尝试将本地运行的Neo4j服务器链接到我的android设备时遇到了两个问题。 My current set-up includes adding the neo4j .jars into my android projects build path, however when I debug on the device I get a "Could not find class 'org.neo4j.graphdb.factory.GraphDatabaseFactory" 我当前的设置包括将neo4j .jars添加到我的android项目的构建路径中,但是,当我在设备上进行调试时,我会收到“找不到类'org.neo4j.graphdb.factory.GraphDatabaseFactory”

I'm assuming the neo4j .jars files have not transferred across the the device. 我假设neo4j .jars文件尚未在设备上传输。 I also tried adding Neo4j in as a maven dependency but got Dalvik errors, can some1 help me out that has created an android application that uses Neo4j. 我还尝试将Neo4j添加为Maven依赖项,但出现Dalvik错误,可以帮助我创建使用Neo4j的android应用程序。

Cheers. 干杯。

I would just use the REST APi from Android, preferably the cypher endpoint . 我只会使用Android的REST APi ,最好是cypher端点

You can use any kind of REST library for that, Restlet, RestEasy, Jersey and even a plain HttpConnection. 为此,您可以使用任何种类的REST库,Restlet,RestEasy,Jersey甚至是简单的HttpConnection。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM