ZahraHeydari / MusicPlayer

Implemented using Clean Arch, MVVM, LiveData, Room, Koin, Coil, Service, Notification and ExoPlayer
Apache License 2.0
618 stars 88 forks source link

Can't run MusicPlayer #6

Closed a1573595 closed 4 years ago

a1573595 commented 4 years ago

Hi, I encountered the following error when executing the project

D:\Android\MusicPlayer\app\build\tmp\kapt3\stubs\debug\com\android\musicplayer\data\model\Song.java:8: error: Multiple fields have the same columnName: duration. Field names: duration, duration. public final class Song extends com.android.player.model.ASong implements android.os.Parcelable { ^

After trying several methods are still unable to run the project order:

  1. Delete .idea file and restart Project.
  2. Build → Clean project → Rebuild Project.
  3. Build → Clean project → Make Project.

Did I miss something?

ZahraHeydari commented 4 years ago

I fixed this bug by adding Transient annotation before local fields of ASong class. I also solved some other issues and updated my source code. Now you can use it and it would be great if you let me know if this issue still exists!

a1573595 commented 4 years ago

Thanks.