title: RuntimeException if minifyEnabled is true with ViewModel class
body: <p>If <code>minifyEnabled</code> is <code>false</code> everything works fine. But after I change my <code>minifyEnabled</code> to <code>true</code> runtime exception happens:</p>
  
  <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{.ui.main.MainActivity}: java.lang.RuntimeException: Cannot create an instance of class .ui.main.MainViewModel
  </code></pre>
  
  <p>My <code>MainActivity</code> class extends <code>AppCompatActivity</code>, and implements <code>LifecycleRegistryOwner</code>, then I declare: </p>
  
  <pre><code>  private val lifecycleRegistry: LifecycleRegistry by lazy { LifecycleRegistry(this) }
    private val viewModel: MainViewModel by lazy { ViewModelProviders.of(this).get(MainViewModel::class.java) }
    override fun getLifecycle(): LifecycleRegistry = lifecycleRegistry
    // and other simple stuff
  </code></pre>
  
  <p>Should I put something in my proguard-rules file maybe?</p>
  
  <p>The full exception log:</p>
  
  <pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
                    Process: com.appchamp.wordchunks, PID: 32558
                    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appchamp.wordchunks/com.appchamp.wordchunks.ui.main.MainActivity}: java.lang.RuntimeException: Cannot create an instance of class com.appchamp.wordchunks.ui.main.MainViewModel
                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3253)
                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349)
                        at android.app.ActivityThread.access$1100(ActivityThread.java:221)
                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
                        at android.os.Handler.dispatchMessage(Handler.java:102)
                        at android.os.Looper.loop(Looper.java:158)
                        at android.app.ActivityThread.main(ActivityThread.java:7224)
                        at java.lang.reflect.Method.invoke(Native Method)
                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
                     Caused by: java.lang.RuntimeException: Cannot create an instance of class com.appchamp.wordchunks.ui.main.MainViewModel
                        at android.arch.lifecycle.ViewModelProviders$DefaultFactory.create(Unknown Source)
                        at android.arch.lifecycle.ViewModelProvider.get(Unknown Source)
                        at android.arch.lifecycle.ViewModelProvider.get(Unknown Source)
                        at com.appchamp.wordchunks.ui.main.l.a(Unknown Source)
                        at a.e.a(Unknown Source)
                        at com.appchamp.wordchunks.ui.main.MainActivity.c(Unknown Source)
                        at com.appchamp.wordchunks.ui.main.MainActivity.onStart(Unknown Source)
                        at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1265)
                        at android.app.Activity.performStart(Activity.java:6915)
                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3216)
                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349) 
                        at android.app.ActivityThread.access$1100(ActivityThread.java:221) 
                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 
                        at android.os.Handler.dispatchMessage(Handler.java:102) 
                        at android.os.Looper.loop(Looper.java:158) 
                        at android.app.ActivityThread.main(ActivityThread.java:7224) 
                        at java.lang.reflect.Method.invoke(Native Method) 
                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 
                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 
                     Caused by: java.lang.reflect.InvocationTargetException
                        at java.lang.reflect.Constructor.newInstance(Native Method)
                        at android.arch.lifecycle.ViewModelProviders$DefaultFactory.create(Unknown Source) 
                        at android.arch.lifecycle.ViewModelProvider.get(Unknown Source) 
                        at android.arch.lifecycle.ViewModelProvider.get(Unknown Source) 
                        at com.appchamp.wordchunks.ui.main.l.a(Unknown Source) 
                        at a.e.a(Unknown Source) 
                        at com.appchamp.wordchunks.ui.main.MainActivity.c(Unknown Source) 
                        at com.appchamp.wordchunks.ui.main.MainActivity.onStart(Unknown Source) 
                        at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1265) 
                        at android.app.Activity.performStart(Activity.java:6915) 
                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3216) 
                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349) 
                        at android.app.ActivityThread.access$1100(ActivityThread.java:221) 
                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 
                        at android.os.Handler.dispatchMessage(Handler.java:102) 
                        at android.os.Looper.loop(Looper.java:158) 
                        at android.app.ActivityThread.main(ActivityThread.java:7224) 
                        at java.lang.reflect.Method.invoke(Native Method) 
                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 
                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 
                     Caused by: java.lang.AssertionError: impossible
                        at java.lang.Enum$1.create(Enum.java:45)
                        at java.lang.Enum$1.create(Enum.java:35)
                        at libcore.util.BasicLruCache.get(BasicLruCache.java:54)
                        at java.lang.Enum.getSharedConstants(Enum.java:211)
                        at java.util.EnumMap.initialization(EnumMap.java:738)
                        at java.util.EnumMap.&lt;init&gt;(EnumMap.java:391)
                        at io.realm.ad.&lt;init&gt;(Unknown Source)
                        at io.realm.ad.a(Unknown Source)
                        at io.realm.ad.a(Unknown Source)
                        at io.realm.aa.l(Unknown Source)
                        at com.appchamp.wordchunks.ui.main.MainViewModel.&lt;init&gt;(Unknown Source)
                        at java.lang.reflect.Constructor.newInstance(Native Method) 
                        at android.arch.lifecycle.ViewModelProviders$DefaultFactory.create(Unknown Source) 
                        at android.arch.lifecycle.ViewModelProvider.get(Unknown Source) 
                        at android.arch.lifecycle.ViewModelProvider.get(Unknown Source) 
                        at com.appchamp.wordchunks.ui.main.l.a(Unknown Source) 
                        at a.e.a(Unknown Source) 
                        at com.appchamp.wordchunks.ui.main.MainActivity.c(Unknown Source) 
                        at com.appchamp.wordchunks.ui.main.MainActivity.onStart(Unknown Source) 
                        at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1265) 
                        at android.app.Activity.performStart(Activity.java:6915) 
                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3216) 
                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349) 
                        at android.app.ActivityThread.access$1100(ActivityThread.java:221) 
                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 
                        at android.os.Handler.dispatchMessage(Handler.java:102) 
                        at android.os.Looper.loop(Looper.java:158) 
                        at android.app.ActivityThread.main(ActivityThread.java:7224) 
                        at java.lang.reflect.Method.invoke(Native Method) 
                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 
                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 
                     Caused by: java.lang.NoSuchMethodException: values []
                        at java.lang.Class.getMethod(Class.java:630)
                        at java.lang.Class.getDeclaredMethod(Class.java:589)
                        at java.lang.Enum$1.create(Enum.java:41)
                        at java.lang.Enum$1.create(Enum.java:35) 
                        at libcore.util.BasicLruCache.get(BasicLruCache.java:54) 
                        at java.lang.Enum.getSharedConstants(Enum.java:211) 
                        at java.util.EnumMap.initialization(EnumMap.java:738) 
                        at java.util.EnumMap.&lt;init&gt;(EnumMap.java:391) 
                        at io.realm.ad.&lt;init&gt;(Unknown Source) 
                        at io.realm.ad.a(Unknown Source) 
                        at io.realm.ad.a(Unknown Source) 
                        at io.realm.aa.l(Unknown Source) 
                        at com.appchamp.wordchunks.ui.main.MainViewModel.&lt;init&gt;(Unknown Source) 
                        at java.lang.reflect.Constructor.newInstance(Native Method) 
                        at android.arch.lifecycle.ViewModelProviders$DefaultFactory.create(Unknown Source) 
                        at android.arch.lifecycle.ViewModelProvider.get(Unknown Source) 
                        at android.arch.lifecycle.ViewModelProvider.get(Unknown Source) 
                        at com.appchamp.wordchunks.ui.main.l.a(Unknown Source) 
                        at a.e.a(Unknown Source) 
                        at com.appchamp.wordchunks.ui.main.MainActivity.c(Unknown Source) 
                        at com.appchamp.wordchunks.ui.main.MainActivity.onStart(Unknown Source) 
                        at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1265) 
                        at android.app.Activity.performStart(Activity.java:6915) 
                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3216) 
                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349) 
                        at android.app.ActivityThread.access$1100(ActivityThread.java:221) 
                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) 
                        at android.os.Handler.dispatchMessage(Handler.java:102) 
                        at android.os.Looper.loop(Looper.java:158) 
                        at android.app.ActivityThread.main(ActivityThread.java:7224) 
                        at java.lang.reflect.Method.invoke(Native Method) 
                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 
                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)  end
  </code></pre>