CopyPastor

Detecting plagiarism made easy.

Score: 0.8367990728320766; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2022-09-19
by Mansoor Malik

Original Post

Original - Posted on 2021-11-03
by l33t



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Most likely, one of your dependencies uses the kotlin version of the viewmodel library whereas your code uses the java version.
**Specify both** to enforce the latest version for all dependencies:
def lifecycle_version = "latest_version" implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
Most likely, one of your dependencies uses the `kotlin` version of the `viewmodel` library whereas your code uses the `java` version.
**Specify both** to enforce the latest version for all dependencies:
```gradle def lifecycle_version = "2.4.0" implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" ```

        
Present in both answers; Present only in the new answer; Present only in the old answer;