LoginSignup
2

More than 5 years have passed since last update.

androidStudio(3.0)でビルドしたapkがインストールできなくなる

Posted at

androidStudio(3.0)でビルドしたデバッグapkが、adb installで次のようなエラーが出てインストールできなくなった。
Failure [INSTALL_FAILED_TEST_ONLY]

どうやら内部でandroid:testOnly="true"でビルドしているからのようで、これだと野良アプリインストールできなくて困る。
このケースなら、次のようにgradle.propertiesに1行加えると対応できる。
android.injected.testOnly=false

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2