react-native-keychain
react-native-keychain copied to clipboard
Android Build Error with v7.0.0: `method does not override or implement a method from a supertype`
Hey there!
I tried upgrading to version 7.0.0 and got the following error during build
[...]/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java:37: error: com.oblador.keychain.cipherStorage.CipherStorageKeystoreAESCBC is not abstract and does not override abstract method getDefaultAliasServiceName() in com.oblador.keychain.cipherStorage.CipherStorage
public class CipherStorageKeystoreAESCBC implements CipherStorage {
^
[...]/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java:167: error: method does not override or implement a method from a supertype
@Override
^
Note: [...]/node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreRsaEcb.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
Gradle: 6.9
Gradle Android: 4.2.2
React Native: 0.64.2
buildToolsVersion = "30.0.3"
minSdkVersion = 26
compileSdkVersion = 30
targetSdkVersion = 30
supportLibVersion = "29.0.0"
kotlinVersion = "1.5.30"
Any ideas? Thank you very much :)
@erksch did you find a solution? having the same problem with a very similar config?
Delete the file node_modules/react-native-keychain/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java
. It appears to have been renamed with different casing CipherStorageKeystoreAesCbc.java
somewhere along the line, and you have an old version.