disusered / cordova-safe

File encryption for Cordova.
MIT License
35 stars 22 forks source link

Plugin not working #29

Open UlisesCeca opened 5 years ago

UlisesCeca commented 5 years ago

Hi, I am trying to install this plugin with Ionic but I get this error when I try to build the project just by instaling the plugin.

Error is:

`C:\Users\Zel\Desktop\a\platforms\android\src\com\disusered\Safe.java:120: error: cannot find symbol

  CRYPTO = new Crypto(new SharedPrefsBackedKeyChain(CONTEXT), new SystemNativeCryptoLibrary());
                          ^

symbol: class SharedPrefsBackedKeyChain location: class Safe Note: Some input files use or override a deprecated API. :compileDebugJavaWithJavac FAILED

Note: Recompile with -Xlint:deprecation for details. 2 errors

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 11.002 secs (node:14276) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. C:\Users\Zel\Desktop\a\platforms\android\src\com\disusered\Safe.java:26: error: package com.facebook.android.crypto.keychain does not exist import com.facebook.android.crypto.keychain.SharedPrefsBackedKeyChain; ^ C:\Users\Zel\Desktop\a\platforms\android\src\com\disusered\Safe.java:120: error: cannot find symbol CRYPTO = new Crypto(new SharedPrefsBackedKeyChain(CONTEXT), new SystemNativeCryptoLibrary()); ^ symbol: class SharedPrefsBackedKeyChain location: class Safe Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 2 errors

FAILURE: Build failed with an exception.

BDominik commented 5 years ago

I'm facing exactly the same problem, do you found any solution?

UlisesCeca commented 5 years ago

Sadly not, @BDominik ...