Default constructor for IntentService (kotlin) : <p>I am new with Kotlin and little bit stack with intentService. Manifest shows me an error that my service doesn't contain default constructor, but inside service it looks ok and there are no errors.</p>

<p>Here is my intentService:</p>

<pre><code>class MyService : IntentService {

    constructor(name:String?) : super(name) {
    }

    override fun onCreate() {
        super.onCreate()
    }

    override fun onHandleIntent(intent: Intent?) {
    }
}
</code></pre>

<p>I was also try another variant:</p>

<pre><code>class MyService(name: String?) : IntentService(name) {
</code></pre>

<p>but when I try to run this service I still get an error:</p>

<pre><code>java.lang.Class&lt;com.test.test.MyService&gt; has no zero argument constructor
</code></pre>

<p>Any ideas how to fix default constructor in Kotlin?</p>

<p>Thanks!</p>
