如何解决此错误。这是离子或Android误差。此错误是在安装Cordova文件加密插件之后出现的。在运行顺利之前。请任何人知道这个错误。
Running app-scripts build: --platform android --target cordova
[12:24:54] build dev started ...
[12:24:55] clean started ...
[12:24:55] clean finished in 21 ms
[12:24:55] copy started ...
[12:24:55] deeplinks started ...
[12:24:55] deeplinks finished in 208 ms
[12:24:55] transpile started ...
[12:25:08] transpile finished in 13.18 s
[12:25:08] preprocess started ...
[12:25:08] preprocess finished in 2 ms
[12:25:08] webpack started ...
[12:25:14] copy finished in 19.01 s
[12:25:26] webpack finished in 17.95 s
[12:25:26] sass started ...
[12:25:28] sass finished in 1.99 s
[12:25:28] postprocess started ...
[12:25:28] postprocess finished in 25 ms
[12:25:28] lint started ...
[12:25:28] build dev finished in 34.05 s
> cordova build android
^
G:Android****platformsandroidsrccomdisuseredSafe.java:120: error: cann
CRYPTO = new Crypto(new SharedPrefsBackedKeyChain(CONTEXT), new SystemNati
^
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***platformsandroidsrcorgapachecordovafileAssetFiles
Note: Recompile with -Xlint:unchecked for details.
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':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
[ERROR] An error occurred while running cordova run android (exit code 1).
删除下面的插件
离子Cordova插件RM Cordova-Plugin-Compat
之后,在
上重新安装了下面的插件离子Cordova插件添加Cordova-Plugin-compat