2017-11-28 2 views
-2

kann kein Android-Emulator erstellt oder ausgeführt werden. So beheben Sie diesen Fehler. Ist das ionisch oder android Fehler? Dieser Fehler tritt nach dem Installieren des Cordova-Datei-Verschlüsselungs-Plugins auf. bevor es reibungslos läuft. Bitte kenne diesen Fehler.IONIC 3 Kompilierfehler. Nach dem Hinzufügen des Dateiverschlüsselungs-Plugins

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\****\platforms\android\src\com\disusered\Safe.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\***\platforms\android\src\org\apache\cordova\file\AssetFiles 
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). 

Antwort

0

unten Plugin entfernen mit

ionischen cordova Plugin rm cordova-Plugin-compat

und danach unter Plugin neu installieren, indem

ionische cordova Plugin hinzufügen cordova -plugin-compat

+0

Ich löse dies. Eigentlich Fehler war das Dateiverschlüsselungs-Plugin. Fehler beim erneuten Installieren des Plugins wurde behoben. Vielen Dank für Ihre Idee –

+0

Hallo, aber das Problem ist immer noch nach dem Hinzufügen der Cordova-Safe-Plugin. Ihre Lösung ist auch nicht gelöst. –

Verwandte Themen