Error:java: cannot access org.apache.http.annotation.Immutable class file for org.apache.http.annotation.Immutable not found
http://www.apache.org/dist/httpcomponents/httpcore/RELEASE_NOTES-4.4.x.txt
httpcore-4.4.5 (2016-06-08) では 4.4.4 ではあったアノテーションが削られています。
Please note the following annotations originally based on CC-BY licensed source have been removed in this release: org.apache.http.annotation.GuardedBy org.apache.http.annotation.Immutable org.apache.http.annotation.NotThreadSafe org.apache.http.annotation.ThreadSafe
httpclient 4.5.1 や 4.5.2 はこれらのアノテーションを使ってるので、うっかり 4.4.5 が入ると死ぬようです。
以下のようにバージョン指定しました。
compile('org.apache.httpcomponents:httpcore:4.4.4')
compile('org.apache.httpcomponents:httpclient:4.5.2') 1時間ぐらいハマった。Java は辛い。
関連エントリー
- Spring MVC で @Async と @RequestScope を共存させるには? @Async と @RequestScope を同時につかうとどうなるか @RequestScope、これは @Scope(value = ...
- ccls + vim-lsp で補完時に後続のwhitespaceが削除される 以下をいれるととりあえずおさまる。ccls と相性が悪い?? let g:lsp_insert_text_enabled = 0 let g...
- textarea.value は代入すると値が変わる 以下のような挙動をする。 var textarea = document.createElement('textarea'); textar...
- macOS の EOS Utility 「カメラとUSB接続できませんでした」 どうあがいても接続できなくて困った。 どうやらなんか Google Chrome が USB デバイスをかたっぱしからオープンする挙動をして...
- stm32f0x 書きこみ速度大会 NanoVNA (stm32f07) に対しての書きこみで、どの方法が早いのだろうか?と気になったので試した。対象は 95764bytes ...