title: Android Studio Library Addition Fail
body: <p>I made a Android library and added a function to it.
  After that when i called the function in my main activity by calling a local library
  it was failing to recognize my Main.xml file and was saying to create one
  In my main class in setcontent it says to Create a new layout resource file for main.xml where as in layout main.xml already exists</p>
  <p>Code of fun in Kotlin file created in library -</p>
  <pre><code>fun encryption(img: ImageView): String {
  val keyGen = KeyPairGenerator.getInstance(&quot;RSA&quot;)
  keyGen.initialize(1024)
  val keyPair = keyGen.generateKeyPair()
  val privateKey = keyPair.private
  val publicKey = keyPair.public
  val encoder: java.util.Base64.Encoder = if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.O) {
      java.util.Base64.getEncoder()
  } else {
      TODO(&quot;VERSION.SDK_INT &lt; O&quot;)
  }
  val private = encoder.encodeToString(privateKey.encoded)
  val public = encoder.encodeToString(publicKey.encoded)
  val keygenerator = KeyGenerator.getInstance(&quot;AES&quot;)
  keygenerator.init(256)
  val secretKey: SecretKey = keygenerator.generateKey()
  val bm = (img.drawable as BitmapDrawable).bitmap
  val baos = ByteArrayOutputStream()
  bm.compress(Bitmap.CompressFormat.JPEG, 100, baos) // bm is the bitmap object
  val ba: ByteArray = baos.toByteArray()
  val encodedImage: String = Base64.encodeToString(ba, Base64.DEFAULT)
  val bytes: ByteArray = encodedImage.toByteArray(Charset.defaultCharset())
  
  
  val cipher1 = Cipher.getInstance(&quot;AES&quot;)
  val keySpec1 = SecretKeySpec(secretKey.encoded, &quot;AES&quot;)
  cipher1.init(Cipher.ENCRYPT_MODE, keySpec1)
  val o = cipher1.doFinal(bytes)
  val kk = String(o, Charset.defaultCharset())
  
  
  var encoded = &quot;&quot;
  var encrypted: ByteArray? = null
  val publicBytes: ByteArray? = Base64.decode(public, Base64.DEFAULT)
  val keySpec: java.security.spec.X509EncodedKeySpec =
      java.security.spec.X509EncodedKeySpec(publicBytes)
  val keyFactory = KeyFactory.getInstance(&quot;RSA&quot;)
  val pubKey = keyFactory.generatePublic(keySpec)
  val cipher = Cipher.getInstance(&quot;RSA/ECB/PKCS1PADDING&quot;)
  cipher.init(Cipher.ENCRYPT_MODE, pubKey)
  encrypted = cipher.doFinal(kk.toByteArray())
  Log.d(&quot;test&quot;, &quot;$encrypted&quot;)
  encoded = Base64.encodeToString(encrypted, Base64.DEFAULT)
  Log.d(&quot;final&quot;, encoded)
  return encoded
  </code></pre>
  <p>}</p>
  <p>Implementation that i added was</p>
  <pre><code>implementation project(':RsaEncryption')
  
                                                                    
  </code></pre>