Skip to content

Instantly share code, notes, and snippets.

@Chickinnick
Created February 6, 2018 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chickinnick/6ce2f46b30cc18a540178dd664437d1c to your computer and use it in GitHub Desktop.
Save Chickinnick/6ce2f46b30cc18a540178dd664437d1c to your computer and use it in GitHub Desktop.
Compile ProcessException in Desugar
//compiled successfully
MutableLiveData<BaseProduct> mutableLiveData = new MutableLiveData<>();
mutableLiveData.observe(this, new Observer<BaseProduct>() {
@Override
public void onChanged(@Nullable BaseProduct baseProduct) {
}
});
//not compiled
MutableLiveData<BaseProduct> mutableLiveData2 = new MutableLiveData<>();
mutableLiveData2.observe(this, baseProduct -> {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment