【Android】AndroidStudioでVolleyをgit submodule addして使う
EclipseからAndroid Studioへ移行し、リファクタついでにvolleyをgit submoduleで利用しようとし、こちらの方のブログを参考に作業を進めました。
Androidプロジェクトを新規作成してVolleyが使えるようになるまで | Androg
ひと通り終わり、Syncしたところvolley/tests/AndroidManifest.xml内で次の様なエラーが生じてしまいました。
Attribute instrumentation#android.test.InstrumentationTestRunner@targetPackage value=(com.android.volley) from AndroidManifest.xml:28:9 is also present at manifestMerger1551574815074955787.xml:12:22 value=(com.android.volley.tests) Suggestion: add 'tools:replace="android:targetPackage"' to <instrumentation> element at AndroidManifest.xml:27:5 to override
よくみたら、Suggestionというのが含まれていたので、 manifestに
xmlns:tools="http://schemas.android.com/tools"
を、instrumentationへ
tools:replace="android:targetPackage"
を追加し、Syncしてみると解決解決。
ただ、submoduleについてよく分かってはいないのですが、submodule内のファイルを弄ることに抵抗があります。 どうなんでしょうか。。。