-
Notifications
You must be signed in to change notification settings - Fork 22
package com.facebook.android.crypto.keychain does not exist #22
Comments
Hi Thiraj , I fork this project and found that this error from Original Facebook Conceal Gradle. After Update The Version Number , The Code is back working again! 👍 👍 🏆 |
Hi juthawong , Can you please mention which version in which file did u change? |
Hi @juthawong |
Hello @abhishekSDEI , @govind38 . Sorry , I just open my Github. Just update conceal.gradle file to 1.1.2 or 1.1.3. Here is the references : https://github.com/juthawong/cordova-safe/blob/master/src/android/conceal.gradle I tested it on Cordova 6.4.0 and it works!. Thanks. P.s. I also submitting pull request for the awesome project owner for review because he is a creator and he knows best. |
Hello @juthawong Thanks for the quick reply. Unfortunately it didn't fix my issue. I updated the conceal.gradle file to both 1.1.2 & 1.1.3 but neither fixed my issue. :( |
In case it helps, I got mine working in ionic 3 after downgrading cordova
|
Thanks for reply. But I had to release app without that feature. Anyway now I can use in future. |
I'm using cordova 7.1.0 and still get this error: |
I already found this solution somewhere else but then it's didn't worked. Ionic: ionic (Ionic CLI) : 4.0.5 (C:\Users\bdomi\AppData\Roaming\npm\node_modules\ionic) Cordova: cordova (Cordova CLI) : 8.0.0 System: Android SDK Tools : 26.1.1 So now what I did is the folowing. |
After install plugin Ionic 3 app cannot run. it getting error
Error: cmd: Command failed with exit code 1 Error output:
G:\Android\TestProject\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;
^
G:\Android\TestProject\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.
Note: G:\Android\TestProject\platforms\android\src\org\apache\cordova\file\AssetFilesystem.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
FAILURE: Build failed with an exception.
Execution failed for task ':compileDebugJavaWithJavac'.
The text was updated successfully, but these errors were encountered: