I cannot use #Entity, #Dao, #Database.
Error :
enter image description here
This is my implementation :
implementation "androidx.room:room-runtime:2.4.2"
implementation "androidx.room:room-ktx:2.4.2"
kapt "androidx.room:room-compiler:2.4.2"
implementation "androidx.navigation:navigation-fragment-ktx:2.4.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.6.10"
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.recyclerview:recyclerview:1.3.0-alpha01'
implementation 'androidx.room:room-runtime:2.5.0-alpha01'
implementation 'androidx.navigation:navigation-ui-ktx:2.4.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.activity:activity-ktx:1.4.0'
compile 'androidx.constraintlayout:constraintlayout:2.1.3'
compile 'androidx.appcompat:appcompat:1.4.1'
compile 'androidx.recyclerview:recyclerview:1.2.1'
I don't know where to fix it.
I already have plugin kapt.
Maybe you could try to upgrade room annotation library from kapt to ksp.
kapt "androidx.room:room-compiler:2.4.2"
to
ksp "androidx.room:room-compiler:2.4.2"
Related
Hi all am try to add AR Functionalities to my project but getting an build error
Duplicate class a.a.a found in modules jetified-core-1.15.0-runtime (com.google.ar:core:1.15.0) and jetified-installreferrer-2.2-runtime (com.android.installreferrer:installreferrer:2.2)``
Go to the documentation to learn how to Fix dependency resolution errors.
after adding
`implementation ("com.google.ar.sceneform.ux:sceneform-ux:1.17.1")`
to the gradle.
below given are my gradle dependencies
final RETROFIT_VERSION = '2.9.0'
final BUTTER_KNIFE_VERSION = '10.2.3'
final DAGGER_VERSION = '2.42'
final OKHTTP_VERSION = '4.8.0'
final GLIDE_VERSION = '3.8.0'
implementation fileTree(dir: 'libs', include: ['*.jar'])
//AR Core SceneFrom
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.17.1"
//material
implementation 'com.google.android.material:material:1.3.0'
//androidx
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.browser:browser:1.4.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.percentlayout:percentlayout:1.0.0'
kapt 'androidx.annotation:annotation:1.2.0'
implementation 'androidx.recyclerview:recyclerview:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.multidex:multidex:2.0.1'
implementation "androidx.activity:activity-ktx:1.2.0"
implementation "androidx.fragment:fragment-ktx:1.3.0"
//dagger
implementation "com.google.dagger:dagger:$DAGGER_VERSION"
kapt "com.google.dagger:dagger-compiler:$DAGGER_VERSION"
//kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
//retrofit
implementation "com.squareup.retrofit2:retrofit:$RETROFIT_VERSION"
implementation "com.squareup.retrofit2:converter-gson:$RETROFIT_VERSION"
implementation "com.squareup.retrofit2:adapter-rxjava2:$RETROFIT_VERSION"
//butter knife
implementation "com.jakewharton:butterknife:$BUTTER_KNIFE_VERSION"
kapt "com.jakewharton:butterknife-compiler:$BUTTER_KNIFE_VERSION"
//glide
implementation "com.github.bumptech.glide:glide:$GLIDE_VERSION"
//ok http
implementation "com.squareup.okhttp3:okhttp:$OKHTTP_VERSION"
implementation "com.squareup.okhttp3:logging-interceptor:$OKHTTP_VERSION"
implementation 'com.afollestad.material-dialogs:core:0.9.6.0'
//firebase
implementation platform('com.google.firebase:firebase-bom:26.6.0')
implementation 'com.google.firebase:firebase-analytics-ktx'
implementation 'com.google.firebase:firebase-config-ktx'
implementation 'com.google.firebase:firebase-crashlytics-ktx'
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-core'
implementation('io.branch.sdk.android:library:5.1.4') {
exclude module: 'answers-shim'
}
//gson
implementation 'com.google.code.gson:gson:2.8.6'
//event bus
implementation 'org.greenrobot:eventbus:3.2.0'
//sdp
implementation 'com.intuit.sdp:sdp-android:1.0.6'
//circle image
implementation 'de.hdodenhof:circleimageview:3.1.0'
//aes
implementation 'com.scottyab:aescrypt:0.0.1'
//notify visitor
implementation 'com.notifyvisitors.notifyvisitors:notifyvisitors:5.3.3'
implementation 'com.android.installreferrer:installreferrer:2.2'
//razorpay
implementation 'com.razorpay:checkout:1.5.16'
implementation 'com.razorpay:razorpay-java:1.4.0'
//BillDesk
implementation project(path: ':BillDeskSDK_v2.1.3')
implementation project(path: ':slidetopick')
//ktx
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.fragment:fragment-ktx:1.3.3'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
// lifecycle
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
//Coroutines
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.5.2"
//test
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
//biometric
implementation "androidx.biometric:biometric:1.1.0"
// reactive
implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
//desugar
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
Tanks in advance if you are helping to fix this issue.
My Application in play developer console is showing error "Vulnerable WebRTC Versions, Your app uses a bad version of WebRTC, which contains security vulnerabilities."
I am using twilio video SDK, however it seems to be the latest version. Still cant figure out which library is using webrtc.
implementation platform('com.google.firebase:firebase-bom:31.1.1')
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.dagger:dagger-android-support:2.38'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.jakewharton:butterknife:10.2.3'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
debugImplementation "com.github.chuckerteam.chucker:library:3.5.2"
releaseImplementation "com.github.chuckerteam.chucker:library-no-op:3.5.2"
implementation 'com.squareup.picasso:picasso:2.71828'
implementation "androidx.lifecycle:lifecycle-runtime:2.5.1"
implementation "androidx.lifecycle:lifecycle-common-java8:2.5.1"
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:core:1.5.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
androidTestImplementation 'androidx.test:runner:1.5.1'
androidTestImplementation "androidx.test:rules:1.5.0"
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
annotationProcessor 'com.google.dagger:dagger-android-processor:2.38'
annotationProcessor 'com.google.dagger:dagger-compiler:2.38'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation "com.google.android.material:material:1.8.0-beta01"
//nav components
implementation 'androidx.navigation:navigation-fragment:2.5.3'
implementation 'androidx.navigation:navigation-ui:2.5.3'
implementation 'com.github.aabhasr1:OtpView:v1.1.2'
implementation 'com.pusher:pusher-java-client:2.2.6'
implementation 'androidx.room:room-runtime:2.4.3'
annotationProcessor 'androidx.room:room-compiler:2.4.3'
implementation 'com.squareup:otto:1.3.8'
implementation 'com.twilio:video-android:7.5.1'
implementation "com.twilio:audioswitch:1.1.2"
implementation 'androidx.core:core-splashscreen:1.0.0'
implementation "androidx.coordinatorlayout:coordinatorlayout:1.2.0"
//progress bar
implementation 'com.github.uzairiqbal91:CircularTimerView:1.0'
implementation "androidx.work:work-runtime:2.7.1"
//country code picker
implementation 'com.hbb20:ccp:2.6.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'io.github.informramiz:nameinitialscircleimageview:1.6'
implementation 'com.github.Drjacky:ImagePicker:2.1.16'
//App update
implementation 'com.google.android.play:app-update:2.0.1'
//Live
implementation 'com.github.florent37:singledateandtimepicker:2.2.7'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
Is there a way to find which of these libraries use webrtc and what versions?
After updating some dependencies(not sure which one, but it includes navigation-ktx and fragment-ktx), "bundleOf" disappeared. Was it deleted? Autocomplete suggests me only "persistableBundleOf()", but it's not what I need.
P.S. I have "implementation 'androidx.core:core-ktx:1.3.2'" too.
UPD: My build.gradle:
implementation 'androidx.fragment:fragment-ktx:1.3.1'
implementation 'androidx.preference:preference-ktx:1.1.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
def navigation_version = "2.3.4"
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"
I am new to android kotlin and I am using viewModel in my OCR App."import androidx.fragment.app.viewModels" is not showing.I have added all the neccessary dependencies.What am doing wrong ?
Here are the dependencies.
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.google.android.material:material:1.2.1'
//lottie animation
implementation 'com.airbnb.android:lottie:3.4.1'
// Add CameraX dependencies
def camerax_version = "1.0.0-beta05"
implementation "androidx.camera:camera-core:${camerax_version}"
implementation "androidx.camera:camera-camera2:${camerax_version}"
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
implementation "androidx.camera:camera-view:1.0.0-alpha12"
// Add ML Kit dependencies
implementation 'com.google.android.gms:play-services-mlkit-text-recognition:16.0.0'
implementation 'com.google.mlkit:language-id:16.0.0'
implementation 'com.google.mlkit:translate:16.0.0'
}
And these is the import error.
Add this dependency to use by viewModels() in a Fragment:
implementation 'androidx.fragment:fragment-ktx:1.2.5'
After refactoring dependencies to androidx dependencies with android studio I keep getting errors when building. I looks like the application still uses the old depedencies, but I have tried to clean projekt and rebuild project... nothing helped.
Below is the dependencies I use in my application.
def retrofit_version = "2.4.0"
def glide_version = "4.3.1"
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
// Design Support
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.vectordrawable:vectordrawable-animated:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation 'androidx.paging:paging-runtime:2.0.0'
implementation "com.github.bumptech.glide:glide:$glide_version"
annotationProcessor "com.github.bumptech.glide:compiler:$glide_version"
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.0.0'
implementation 'androidx.preference:preference:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'