我正在尝试按照这里给出的示例操作:
https://developer.android.com/topic/security/data我已经在我的gradle中包含了所需的库:
implementation "androidx.security:security-crypto:1.0.0"
// For Identity Credential APIs
implementation "androidx.security:security-identity-credential:1.0.0-alpha02"
然而,当我尝试使用这段代码时:
val mainKey = MasterKey.Builder(applicationContext)
.setKeyScheme(MasterKey.KeyScheme.AES256_GCM)
.build()
我收到了“未解决的引用:MasterKey错误”的错误。 这个库中是否完全包含该类?
提前致谢。