0

I have an app with a few modules. In my base module I am using

implementation "android.arch.lifecycle:extensions:$lifecycle_version"

and the app runs with no problem but when I switch to

api "android.arch.lifecycle:extensions:$lifecycle_version"

android studio shows the error: Default Activity not found. Do I need to include the implementation in every module or is it possible to include the import in the base module?

Rgfvfk Iff
  • 1,549
  • 2
  • 23
  • 47
  • Try with `Invalidate Caches / Restart`. – Faysal Ahmed Sep 06 '18 at 12:27
  • Make sure you have specified the default activity in your AndroidManisfest.xml file. Within your default activity's xml section, there should be these tags: ` ` – Faysal Ahmed Sep 06 '18 at 12:35
  • Is this related? https://issuetracker.google.com/issues/79671572#comment3 hint: you may need a newer version of android studio – TWL Sep 07 '18 at 21:37

0 Answers0