Comments (6)
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.
Could it be something related to your gradle dependencies setup? Can you share your build.gradle?
from livedata-ktx.
it's here
https://github.com/Kadanza/TestModules/blob/master/base/build.gradle
https://github.com/Kadanza/TestModules
from livedata-ktx.
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.
Thanks)
from livedata-ktx.
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)
- NonNull operation doesn't preserve immutability of LiveData HOT 1
- Incompatible with LiveData 2.x as package name is changed HOT 1
- remove @Suppress("DEPRECATION") HOT 3
- SingleLiveData doesn't work as expected HOT 4
- MutableLiveDataKtx is not subtype of MutableLiveData HOT 2
- different between versions 3.0.0 and 2.0.2 HOT 5
- Multiple implementation issue in android studio 3.5 HOT 2
- PublishLiveDataKtx not remove observer by lifecycle event
- debounce() uses Handler which makes it difficult to test
- Unnecessary Nullable types HOT 5
- minSdk version 19 -> 16? HOT 3
- Create `combineWith` operator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from livedata-ktx.