4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

4
2
0

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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?