LoginSignup
0
0

More than 5 years have passed since last update.

Instant apps化をする時のbuild.gradleの注意点

Last updated at Posted at 2018-08-31

ハマったポイント

https://codelabs.developers.google.com/codelabs/android-instant-apps/index.html#0 を参考にinstant apps化を進めていて、最後に instant モジュールをビルドしようとした時、生成物のpackage名が <appのpackage>.base となってしまって、Google playにuploadする際に怒られた (install用のapkとpackage名が違う!と)

解決方法

  • baseinstalled の関連付けの方法が、codelabのやり方だと上手くいかないので、 googlesample の方に合わせる

codelabsの方

  • :installed -> :base で依存を解決している

image.png

  • おそらくこれだと、 :instant をビルドする時に :installed の情報が全く分からなくなり、仕方なく :base の情報を元にビルドが走る -> package名が base のものを使う、になってしまうのだと思う

googlesampleの方

0
0
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
0
0