java.lang.RuntimeException: Unable to instantiate service com.tns.notifications.NotificationIntentService: java.lang.InstantiationException: can't instantiate class com.tns.notifications.NotificationIntentService; no empty constructor


Samebug tips1

This happens when you try to instantiate a class that can't be instantiated, either because the class object is abstract, an interface, an array class, a primitive type, void, or because the class has no nullary constructor.


7 months ago
Expert tip

Solutions on the web309

Solution icon of github
via GitHub by pacear10
, 8 months ago
Unable to instantiate service com.tns.notifications.NotificationIntentService: java.lang.InstantiationException: can't instantiate class com.tns.notifications.NotificationIntentService; no empty constructor

Solution icon of github
Unable to instantiate service com.tns.notifications.NotificationIntentService: java.lang.InstantiationException: can't instantiate class com.tns.notifications.NotificationIntentService; no empty constructor

Solution icon of web
via xamarin.com by Unknown author, 1 year ago
Unable to instantiate service example.MyIntentService: java.lang.InstantiationException: can't instantiate class example.MyIntentService; no empty constructor

Solution icon of web
via xamarin.com by Unknown author, 1 year ago
Unable to instantiate service example.MyIntentService: java.lang.InstantiationException: can't instantiate class example.MyIntentService; no empty constructor

Solution icon of web
via xamarin.com by Unknown author, 1 year ago
Unable to instantiate service DemoService: java.lang.InstantiationException: can't instantiate class DemoService; no empty constructor

Solution icon of stackoverflow
via Stack Overflow by Debopam
, 4 months ago
Unable to instantiate service com.app.android.DowloadService: java.lang.InstantiationException: can't instantiate class com.app.android.DowloadService; no empty constructor

Solution icon of stackoverflow
Unable to instantiate service com.floritfoto.apps.ave.Music: java.lang.InstantiationException: can't instantiate class com.floritfoto.apps.ave.Music; no empty constructor

Solution icon of stackoverflow
via Stack Overflow by Loai
, 1 year ago
Unable to instantiate service com.example.test09_gsm.GCMIntentService: java.lang.InstantiationException: can't instantiate class com.example.test09_gsm.GCMIntentService; no empty constructor

Solution icon of stackoverflow
via Stack Overflow by Deve
, 1 year ago
Unable to instantiate service com.test2.lab.DownloadService: java.lang.InstantiationException: can't instantiate class com.test2.lab.DownloadService; no empty constructor

Solution icon of stackoverflow
Unable to instantiate service com.afishamedia.widget.Widget$GetNews: java.lang.InstantiationException: can't instantiate class com.afishamedia.widget.Widget$GetNews; no empty constructor

Stack trace

java.lang.RuntimeException: Unable to instantiate service com.tns.notifications.NotificationIntentService: java.lang.InstantiationException: can't instantiate class com.tns.notifications.NotificationIntentService; no empty constructor
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2641)
	at android.app.ActivityThread.access$1600(ActivityThread.java:153)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1329)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:137)
	at android.app.ActivityThread.main(ActivityThread.java:5227)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.InstantiationException: can't instantiate class com.tns.notifications.NotificationIntentService; no empty constructor
	at java.lang.Class.newInstanceImpl(Native Method)
	at java.lang.Class.newInstance(Class.java:1319)
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2638)
	... 10 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 1 year ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
178 times, 4 months ago
39 more bugmates