googlecodelabs / android-build-an-app-architecture-components

Other
266 stars 133 forks source link

Application crashing #25

Open Fernando87ca opened 6 years ago

Fernando87ca commented 6 years ago

On step 9, you are including the following dependencies for lifecycle:

compile "android.arch.lifecycle:runtime:1.0.0-alpha9" compile "android.arch.lifecycle:extensions:1.0.0-alpha9" annotationProcessor "android.arch.lifecycle:compiler:1.0.0-alpha9"

but with this libreries the postValue() make my application crash, instead of this I use:

implementation "android.arch.lifecycle:runtime:1.0.0"
implementation "android.arch.lifecycle:extensions:1.0.0"
annotationProcessor "android.arch.lifecycle:compiler:1.0.0"

and i change again DetailActivity extends from AppCompatActivity instead of LifecycleActivity, because on this version is deprecated.

If his problem is also fixed, could you please, update this tutorial?