Kotlin AWS Credentials

`val cred: AWSCredentials = BasicAWSCredentials(accessKey, secretKey)`

gives me complaint of : Required: AWSCredentiasl Found: BasicAWSCredentials

yet when I look at the source code: (from goto implementation -> decompiled *.class file)

`public class BasicAWSCredentials implements AWSCredentials {

and when lookina5t at the docs:


what am I doing wrong? How do I begin to debug this?


It works for me, try to check import:

import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.BasicAWSCredentials

  1. Thanks!

  2. I am an idiot – I was somehow importing BasicAWSCredentials from a DIFFERENT PACKAGE – in particular, some Gradle package instead of the AWS package. This is fixed now. :slight_smile: