タグの意味を間違えていた
何を間違えていたのか、防備録として書いておきます。
Lintエラーの内容
エラーは下記のようなものでした。
The <uses-library> element must be a direct child of the <application> element Issue: Checks that various manifest elements are declared in the right place Id: WrongManifestParent The <uses-library> element should be defined as a direct child of the <application> tag, not the <manifest> tag or an <activity> tag. Similarly, a <uses-sdk> tag much be declared at the root level, and so on. This check looks for incorrect declaration locations in the manifest, and complains if an element is found in the wrong place.
確かに、私は
そこで、Lintチェックで指摘された通り、
ところが、apkをインストール使用すすると下記のようにインストールに失敗します。
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY] 06-28 15:51:39.016: E/PackageManager(61): Package com.momoonga.luarida requires unavailable shared library org.apache.http.entity; failing!
ライブラリが共有されていないと言っています。ライブラリの場所がわから無いようです。ライブラリはしっかりビルドパスに書かれていますし、.classpathファイルを見ても、ちゃんと書いてあります。
それでは、何故インストールに失敗するのか?
勘違いしていたこと
そもそも、
それで、
では、何故、いままでエラーが出なかったかと言うと、
要するに、外部ライブラリについては、何もmanifest.xmlに書く必要が無いということです。
以上、防備録終わりです。