title: Android Studios: Type inference failed. The value of the type parameter T should be mentioned in input types
body: <p>Having an error with Android Studios (Kotlin)</p>
  
  <p>Error:</p>
  
  <blockquote>
    <p>e: Type inference failed. The value of the type parameter T should be mentioned in input types (argument types, receiver type or expected type). Try to specify it explicitly.</p>
  </blockquote>
  
  <pre class="lang-kotlin prettyprint-override"><code>fun devId(): Any {
      var str = Build.CPU_ABI
      if (Build.VERSION.SDK_INT &gt;= 21) {
          var i = 0
          val hashSet = HashSet(listOf(arrayOf("armeabi", "armeabi-v7a", "arm64-v8a", "x86", "x86_64", "mips", "mips64")))
          val strArr = Build.SUPPORTED_ABIS
          val length = strArr.size
          while (true) {
              if (i &gt;= length) { break }
              val str2 = strArr[i]
              if (hashSet.contains(str2)) {
                  str = str2
                  break
              }
              i++
          }
      }
      return println(Build.BOARD + Build.BRAND + str + Build.DEVICE + Build.MANUFACTURER + Build.MODEL + Build.PRODUCT)
  }
  </code></pre>