ritesh-singh / WeatherApplication

A WeatherApplication with usage of different libraries of Android.
74 stars 26 forks source link

DataBase_Impl does not exist #2

Closed Anu07 closed 6 years ago

Anu07 commented 6 years ago

Error:cannot find implementation for com.application.room.UserDataBase.

Hi,I have followed your tutorial.But getting an error regarding implementation of Database abstract class.Please help me!!

ritesh-singh commented 6 years ago

https://stackoverflow.com/questions/47274677/room-cannot-find-implementation

https://stackoverflow.com/questions/44417136/room-persistence-library-run-time-exception-when-calling-rooms-inmemorybuilder-m/44582509

Can you check here, if your issues falls in these categories.

ritesh-singh commented 6 years ago

Closing this issue, it can be solved by following one of the above solution.

ameybhandarkar commented 4 years ago

Nope. None of the above solutions worked for me.

pierretsap commented 3 years ago

I had the same issue. I finally resolved it by adding these lines in my graddle file :

def room_version = "2.2.3" // be sure to have the latest version of room
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "android.arch.persistence.room:compiler:$room_version"
duttabhishek0 commented 2 years ago

Adding to @pierretsap if you are not using androidx, then adding the following would help:

 // ViewModel and Live Data
 implementation "android.arch.lifecycle:extensions:1.1.1"
 kapt "android.arch.lifecycle:compiler:1.1.1"

 // Room
 implementation "android.arch.persistence.room:runtime:1.1.1"
 kapt "android.arch.persistence.room:compiler:1.1.1

Also do add apply plugin 'kotlin-kapt' in your app's build.gradle

AungHtetKyawWho commented 2 years ago

yes. Thanks a bunch

On Sun, May 8, 2022, 9:22 PM Abhishek Dutt @.***> wrote:

Adding to @pierretsap https://github.com/pierretsap if you are not using androidx, then adding the following would help:

// ViewModel and Live Data implementation "android.arch.lifecycle:extensions:1.1.1" kapt "android.arch.lifecycle:compiler:1.1.1"

// Room implementation "android.arch.persistence.room:runtime:1.1.1" kapt "android.arch.persistence.room:compiler:1.1.1

Also do add apply plugin 'kotlin-kapt' in your app's build.gradle

— Reply to this email directly, view it on GitHub https://github.com/ritesh-singh/WeatherApplication/issues/2#issuecomment-1120432705, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJJORC4E3XGNC73BTVJZLZLVI7IJZANCNFSM4FKRHQ6Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dhiru909 commented 1 year ago

but i am getting error please help