Timer Kullanınca Not on the main thread Sorunu
Logcat:
12-25 19:53:07.071 4879-5020/com.example.trafikuygulama E/AndroidRuntime: FATAL EXCEPTION: Timer-0
Process: com.example.trafikuygulama, PID: 4879
java.lang.IllegalStateException: Not on the main thread
at maps.w.d.a(Unknown Source)
at maps.y.F.a(Unknown Source)
at maps.ad.t.a(Unknown Source)
at xj.onTransact(:com.google.android.gms.DynamiteModulesB:167)
at android.os.Binder.transact(Binder.java:380)
at com.google.android.gms.maps.internal.IGoogleMapDelegate$zza$zza.addMarker(Unknown Source)
at com.google.android.gms.maps.GoogleMap.addMarker(Unknown Source)
at com.example.trafikuygulama.KullaniciActivity.KonumOku(KullaniciActivity.java:142)
at com.example.trafikuygulama.KullaniciActivity$1.run(KullaniciActivity.java:71)
at java.util.Timer$TimerImpl.run(Timer.java:284)
Buradaki hata nedir ? Ve nasıl çözebilirim ?