java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/app/ActivityManagerCompat

后端 未结 3 2393
無奈伤痛
無奈伤痛 2021-02-20 16:33

Description


I want to build todolist app.I want to store information using RoomDatabse. I build Database with room and get infomation than save to database. But

3条回答
  •  爱一瞬间的悲伤
    2021-02-20 17:17

    In your gradle dependencies, do you use this?

    implementation "androidx.room:room-runtime:$room_version"
    annotationProcessor "androidx.room:room-compiler:$room_version"
    

    If so, replace it with:

        implementation 'android.arch.persistence.room:runtime:1.1.1'
        annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
    

提交回复
热议问题