title: Got this error when tried a code using dagger hilt, Error:[Hilt] java.lang.reflect.InvocationTargetException (no error message)
body: <p>I tried a code to make a currency converter in native Android using an API. I have used Retrofit, Dagger-Hilt and the MVVM architectural design pattern. After doing all the coding ,this is the error I got. The API fetches live currency exchange rates,which were converted from json to kotlin and used.</p>
  <p><strong>Gradle file</strong>
  This is my gradle file with all the dependencies added.</p>
  <pre><code>plugins {
  
      id 'com.android.application'
      id 'kotlin-android'
      id 'kotlin-kapt'
      id 'dagger.hilt.android.plugin'
  }
  
  android {
      compileSdkVersion 29
  
      defaultConfig {
          applicationId &quot;com.example.currency&quot;
          minSdkVersion 23
          targetSdkVersion 29
          versionCode 1
          versionName &quot;1.0&quot;
  
          testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
  
      }
  
      buildTypes {
  
          release {
              shrinkResources true
              minifyEnabled true
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
  
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
      kotlinOptions {
          jvmTarget = JavaVersion.VERSION_1_8.toString()
      }
  
      buildFeatures{
          viewBinding true
          dataBinding true
      }
  
  }
  
  dependencies {
  
      implementation &quot;org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version&quot;
      implementation 'androidx.core:core-ktx:1.3.2'
      implementation 'androidx.appcompat:appcompat:1.2.0'
      implementation 'com.google.android.material:material:1.3.0'
      implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
      implementation 'androidx.legacy:legacy-support-v4:1.0.0'
      implementation 'androidx.appcompat:appcompat:1.3.0-beta01'
      implementation 'androidx.appcompat:appcompat:1.3.0-beta01'
      implementation 'androidx.navigation:navigation-fragment-ktx:2.3.4'
      testImplementation 'junit:junit:4.13.2'
      androidTestImplementation 'androidx.test.ext:junit:1.1.2'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
      implementation 'androidx.recyclerview:recyclerview:1.1.0'
  
      //dagger - hilt
      implementation &quot;com.google.dagger:hilt-android:2.31-alpha&quot;
      kapt &quot;com.google.dagger:hilt-android-compiler:2.28-alpha&quot;
      implementation &quot;androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03&quot;
      kapt &quot;androidx.hilt:hilt-compiler:1.0.0-beta01&quot;
  
      //Activity KTX for viewModels()
      implementation &quot;androidx.activity:activity-ktx:1.2.1&quot;
  
      //Architectural components
      implementation &quot;androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0&quot;
  
      //Lifecycle
      implementation &quot;androidx.lifecycle:lifecycle-extensions:2.2.0&quot;
      implementation &quot;androidx.lifecycle:lifecycle-livedata-ktx:2.3.0&quot;
      implementation &quot;androidx.lifecycle:lifecycle-runtime-ktx:2.3.0&quot;
      implementation &quot;androidx.lifecycle:lifecycle-runtime-ktx:2.3.0&quot;
  
      //Retrofit
      implementation 'com.squareup.retrofit2:retrofit:2.9.0'
      implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
      implementation 'com.squareup.okhttp3:okhttp:4.9.0'
  
      //Coroutines
      implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2'
      implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1'
  
      //Coroutines Lifecycle Scopes
      implementation &quot;androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0&quot;
      implementation &quot;androidx.lifecycle:lifecycle-runtime-ktx:2.3.0&quot;
   }
  </code></pre>