AndroidでCoAPサーバーを構築しようとしています.californiumの例を使用しています.
https://github.com/curioustechizen/Californium/tree/4ace5b85974a0646aaaa6ab43c9314d1c5a438e1
Http.java
しかし、パッケージ内でエラーが発生しましたch.ethz.inf.vs.californium.layers
それが示している
The type org.apache.http.entity.ContentType cannot be resolved. It is indirectly referenced from required .class files
問題は、インポートしたライブラリが次のような間違った .jar ファイルにあると考えています。
apache-mimne4j.core-0.7.2.jar californium-0.18.7-final.jar commons-codec-1.6.jar commons-io-2.4.jar commons-logging-1.1.1.jar google-http-client-1.10 .3-beta.jar google-oauth-client-1.10.1-beta.jar gson-2.1.jar グアバ-11.0.1.jar httpclient-4.2.1.jar httpclient-4.3.2.jar httpcore-nio-4.2 .1.jar jsr305-1.3.9.jar junit-3.8.1.jar junit-4.8.1.jar mockito-core-1.8.5.jar
誰かが私に何が問題なのか、それを修正する方法を教えてくれることを願っています。また、CoAPのアンドロイドの例についてオープンソースに尋ねてください。