Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

build error after install this plugin #28

Open
santanu07 opened this issue Jun 26, 2018 · 4 comments
Open

build error after install this plugin #28

santanu07 opened this issue Jun 26, 2018 · 4 comments

Comments

@santanu07
Copy link

:app:compileDebugJavaWithJavac
..\youtube-download\platforms\android\app\src\main\java\com\disusered\Safe.java:26: error: package com.facebook.android.crypto.keychain does not exist
import com.facebook.android.crypto.keychain.SharedPrefsBackedKeyChain;
^
F:\santanu\youtube-download\platforms\android\app\src\main\java\com\disusered\Safe.java:120: error: cannot find symbol
CRYPTO = new Crypto(new SharedPrefsBackedKeyChain(CONTEXT), new SystemNativeCryptoLibrary());
^
symbol: class SharedPrefsBackedKeyChain
location: class Safe
2 errors
FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    27 actionable tasks: 1 executed, 26 up-to-date
    Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 46s
(node:3416) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
F:\santanu\youtube-download\platforms\android\app\src\main\java\com\disusered\Safe.java:26: error: package com.facebook.android.crypto.keychain does not exist
import com.facebook.android.crypto.keychain.SharedPrefsBackedKeyChain;
^
F:\santanu\youtube-download\platforms\android\app\src\main\java\com\disusered\Safe.java:120: error: cannot find symbol
CRYPTO = new Crypto(new SharedPrefsBackedKeyChain(CONTEXT), new SystemNativeCryptoLibrary());
^
symbol: class SharedPrefsBackedKeyChain
location: class Safe
2 errors

@santanu07 santanu07 changed the title build error build error after install this plugin Jun 26, 2018
@UlisesCeca
Copy link

I am having this issue too :/

Have you solved it yet?

@BDominik
Copy link

BDominik commented Aug 8, 2018

Same here.
Any solution?

@BDominik
Copy link

I already found this solution somewhere else but then it's didn't worked.
Ionic Info

Ionic:

ionic (Ionic CLI) : 4.0.5 (C:\Users\bdomi\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.11

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : not available

System:

Android SDK Tools : 26.1.1
NodeJS : v8.11.3 (C:\Program Files\nodejs\node.exe)
npm : 6.3.0
OS : Windows 10

So now what I did is the folowing.
In the platforms/android/cordova-safe/starter-conceal.gradle change this
compile('com.facebook.conceal:conceal:1.0.0@aar')
to this
compile('com.facebook.conceal:conceal:2.0.1@aar')
I hope it will work for you too.

@vonikshah
Copy link

Thanks @BDominik

It worked for me.
You save my day. Thanks alot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants