Giter VIP home page Giter VIP logo

Comments (6)

henrytao-me avatar henrytao-me commented on May 18, 2024 2

@Kadanza

Please try implementation "com.shopify:livedata-ktx:2.0.0". From now on, LiveDataKtx 1.x is for LiveData 1.x. LiveDataKtx 2.x is for LiveData 2.x.

Let me know if it works for you.

from livedata-ktx.

henrytao-me avatar henrytao-me commented on May 18, 2024

Could it be something related to your gradle dependencies setup? Can you share your build.gradle?

from livedata-ktx.

Kadanza avatar Kadanza commented on May 18, 2024

it's here
https://github.com/Kadanza/TestModules/blob/master/base/build.gradle

https://github.com/Kadanza/TestModules

from livedata-ktx.

henrytao-me avatar henrytao-me commented on May 18, 2024

Hi @Kadanza

I found the issue. LiveData 2.x is under different package name androidx.lifecycle while the 1.x is under android.arch.lifecycle. That is why the extension does not work.

I log a ticket here to upgrade LiveDataKtx to support 2.x #13. Thanks for your feedback. New version will be pushed shortly.

from livedata-ktx.

Kadanza avatar Kadanza commented on May 18, 2024

Thanks)

from livedata-ktx.

aliboi avatar aliboi commented on May 18, 2024

apply plugin: 'com.android.feature'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation project(':base')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}

Could it be something related to your gradle dependencies setup? Can you share your build.gradle?

build.gradle shared.

Kindly help please

from livedata-ktx.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.